Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2010-12-05 (original capture). Home · Forum · All archived topics · Downloads

Author Topic: [App] RaceToPY ALPHA (Convert races to WCS .78)  (Read 958 times)

Biggy

  • Level 2 Apprentice
  • Posts: 46
  • <3 WCS :)
[App] RaceToPY ALPHA (Convert races to WCS .78)
« on: November 01, 2010, 05:05:02 PM »
Will (attempt) to convert your ES races to PY races.

To use...

1) Extract the rar
2) Put your es_WCSlanguage_db.txt in the folder
3) Run RacesToPY.exe
4) Select your race file
5) Save the output

It will also fix the following commands
 - wcs_dealdamage - > wcs damage
 - wcs_explode - > wcs explode

Notes...
* Will not replace the the language keys with their values (Coming soon)
* It is ALPHA (Report Bugs)

Here is an example of the output. Converted MiB's Black Knight
Code: [Select]
#One or more races converted with RacesToPY by Biggy


[Black Knight]
#Requirement section
required = 130
maximum = 0

#Restrict section
restrictmap = ""
restrictteam = 0
restrictitem = ""

#Other info
author = "Shidobu"
desc = "Dark Ages"
spawncmd = "es_give event_var(userid) weapon_hegrenade; es_tell event_var(userid) #multi #green[#lightgreenGrenade#green] #defaultTake a critical grenade."
deathcmd = ""
roundstartcmd = ""
roundendcmd = ""
preload = ""
allowonly = ""
onchange = ""

#Skill information
numberofskills = 4
numberoflevels = 5
skillnames = "Dark Armor(Spawn)|Spike Arm(Attacker)|Iron Lance(Attacker)|True Knight(Attacker)"
skilldescr = "Health|Nade Damage|Impale (20% chance max)|Invis Remove"
skillcfg = "player_spawn|player_attacker|player_attacker|player_attacker"
skillneeded = "0|0|0|8"

#Aliases used
racealias_black2 = "es_set wcs_dmg event_var(dmg_health);es_xmath wcs_dmg float;es_math wcs_dmg * server_var(wcs_multiplier);es est_RoundDecimal wcs_dmg server_var(wcs_dmg) 0;es wcs damage event_var(attacker) event_var(userid) server_var(wcs_dmg);wcs_xalias racealias_black2x"
racealias_black2x = "es_tell event_var(userid) #multi #green[#lightgreenSpike Arm#green] #defaultYou were hit for server_var(wcs_dmg) damage from event_var(es_attackername).;es_tell event_var(attacker) #multi #green[#lightgreenSpike Arm#green] #defaultYou caused server_var(wcs_dmg) damage to event_var(es_username)."
racealias_cl1 = "es est_physpush event_var(userid) 0 400 0;es_delayed .1 est_freeze event_var(userid) 1;es_delayed 1 est_freeze event_var(userid) 0; es_tell event_var(userid) #multi #green[#lightgreenImpale#green] #defaultYou impaled your enemy"
racealias_cl1a = "es wcx_effect line server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) sprites/lgtning.vmt 2 2 2 255 0 0 255 5"
racealias_black4 = "es est_setplayercolor event_var(userid) 255 255 255 255 1;es_tell event_var(userid) #multi #green[#lightgreenTrue Knight#green] #defaultYour invis was removed by event_var(es_attackername).;es_tell event_var(attacker) #multi #green[#lightgreenTrue Knight#green] #defaultYou took away event_var(es_username)'s invis."


#Skills
[[skill1]]
setting = "es_xset wcs_addhealth 15|es_xset wcs_addhealth 20|es_xset wcs_addhealth 25|es_xset wcs_addhealth 30|es_xset wcs_addhealth 35"
cmd = "es est_Health event_var(userid) + server_var(wcs_addhealth);es_tell event_var(userid) #multi #green[#lightgreenDark Armor#green] #defaultYou got server_var(wcs_addhealth) extra health."
sfx = "0"

[[skill2]]
setting = "es_xset wcs_multiplier .4|es_xset wcs_multiplier .6|es_xset wcs_multiplier .8|es_xset wcs_multiplier 1.0|es_xset wcs_multiplier 1.2"
cmd = "if (event_var(weapon) = hegrenade) then wcs_xalias racealias_black2"
sfx = "0"

[[skill3]]
setting = "es_xset wcs_chance 4|es_xset wcs_chance 8|es_xset wcs_chance 12|es_xset wcs_chance 16|es_xset wcs_chance 20"
cmd = "if (server_var(wcs_dice) <= server_var(wcs_chance)) then est_isalive wcs_alive event_var(userid);if (server_var(wcs_dice) <= server_var(wcs_chance)) then if (server_var(wcs_alive) = 1) then wcs_xalias racealias_cl1"
sfx = "if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es_math wcs_z1 + 0;es_math wcs_z2 + 150;if (server_var(wcs_dice) <= server_var(wcs_chance)) then wcs_xalias racealias_cl1a"

[[skill4]]
setting = "es_xset wcs_chance 16|es_xset wcs_chance 18|es_xset wcs_chance 20|es_xset wcs_chance 22|es_xset wcs_chance 24"
cmd = "if (server_var(wcs_dice) <= server_var(wcs_chance)) then wcs_xalias racealias_black4"
sfx = "0"
cooldown = "0"

This app has been lightly tested.

Coming Soon:
 - Proper language file support


« Last Edit: November 02, 2010, 03:37:29 PM by Biggy »

WZHPredz

  • Level 1 Trained Beginner
  • Posts: 20
  • Mapping and Coding for WC:S
Re: [App] RaceToPY ALPHA
« Reply #1 on: November 01, 2010, 05:12:57 PM »
Really Nice biggy, Have tested 4 of my Races and they work perfectly fine. As you said as long as you add cooldown...
So Far Helped Create -->
 



Biggy

  • Level 2 Apprentice
  • Posts: 46
  • <3 WCS :)
Re: [App] RaceToPY ALPHA
« Reply #2 on: November 01, 2010, 05:13:19 PM »
Just added cooldown, redownload from first post.

Kami

  • Moderator
  • Level 7 Expert
  • Posts: 262
  • Pokemon Master!
Re: [App] RaceToPY ALPHA (Convert races to WCS .78)
« Reply #3 on: November 01, 2010, 06:16:46 PM »
Racealiases need wcs_xalias to call them, does your programm do that?

Biggy

  • Level 2 Apprentice
  • Posts: 46
  • <3 WCS :)
Re: [App] RaceToPY ALPHA (Convert races to WCS .78)
« Reply #4 on: November 01, 2010, 06:18:30 PM »
WCS .78 does.

AvasT

  • Brazilian
  • Watchdog
  • Level 7 Expert
  • Posts: 1195
  • Ride BMX!
Re: [App] RaceToPY ALPHA (Convert races to WCS .78)
« Reply #5 on: November 01, 2010, 06:21:47 PM »
No it doesn't.
Fix this.
(click to show/hide)

(click to show/hide)





Biggy

  • Level 2 Apprentice
  • Posts: 46
  • <3 WCS :)
Re: [App] RaceToPY ALPHA (Convert races to WCS .78)
« Reply #6 on: November 01, 2010, 06:29:03 PM »
Maybe I don't get your "question\demand." WCS .78 seems to support racealias. Look at the stock races it comes with, they use racealiases.

Kami

  • Moderator
  • Level 7 Expert
  • Posts: 262
  • Pokemon Master!
Re: [App] RaceToPY ALPHA (Convert races to WCS .78)
« Reply #7 on: November 01, 2010, 06:34:28 PM »
it supports racealiases but needs wcs_xalias to call them

for example if xyz = zyx then wcs_xalias racealias_blubb

Biggy

  • Level 2 Apprentice
  • Posts: 46
  • <3 WCS :)
Re: [App] RaceToPY ALPHA (Convert races to WCS .78)
« Reply #8 on: November 01, 2010, 06:35:59 PM »
Ohhh, thx for info. Will fix

Baster

  • Level 3 Trained Apprentice
  • Posts: 76
  • -_- ich bin ganz in deiner Nähe
Re: [App] RaceToPY ALPHA (Convert races to WCS .78)
« Reply #9 on: November 01, 2010, 06:44:16 PM »
hmm it dont work for me i post a normal race an i only get a textfile with 1kb "#One or more races converted with RacesToPY by Biggy"

can someone help me please

Kami

  • Moderator
  • Level 7 Expert
  • Posts: 262
  • Pokemon Master!
Re: [App] RaceToPY ALPHA (Convert races to WCS .78)
« Reply #10 on: November 01, 2010, 06:48:29 PM »
propably you just can't open it the way it should be opened.

download notepad ++ and try to open it again

Baster

  • Level 3 Trained Apprentice
  • Posts: 76
  • -_- ich bin ganz in deiner Nähe
Re: [App] RaceToPY ALPHA (Convert races to WCS .78)
« Reply #11 on: November 01, 2010, 06:50:11 PM »
i have notepad ++ i can open the file but thee is only this text "#One or more races converted with RacesToPY by Biggy"

Biggy

  • Level 2 Apprentice
  • Posts: 46
  • <3 WCS :)
Re: [App] RaceToPY ALPHA (Convert races to WCS .78)
« Reply #12 on: November 01, 2010, 06:54:06 PM »
U need to the { }

ie

"1"
{
   RACE STUFF WAS HERE
}

You would paste all that in

Baster

  • Level 3 Trained Apprentice
  • Posts: 76
  • -_- ich bin ganz in deiner Nähe
Re: [App] RaceToPY ALPHA (Convert races to WCS .78)
« Reply #13 on: November 01, 2010, 06:56:53 PM »
hmm the programm crashed now.

should i install another program to use this programm ?

parametername :length.

it work now thank for your help
« Last Edit: November 01, 2010, 07:02:57 PM by Baster »

Biggy

  • Level 2 Apprentice
  • Posts: 46
  • <3 WCS :)
Re: [App] RaceToPY ALPHA (Convert races to WCS .78)
« Reply #14 on: November 01, 2010, 07:08:36 PM »
If it crashes, please post the crash information and the file\race you used.