Author Topic: Races  (Read 1481 times)

Jumpman

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Races
« on: April 24, 2016, 11:54:09 PM »
Ass i understand from a old topic abgar answered me on another topic, a lot of the race ZIP files here in forum are quite old, so it shows a corruption warning.

It is possible there is a friendly soul that will be nice to upload some races to me in a zip file, i will be very happy so i do not need to use a lot of time to find races around the forum.

Thanks in advance  ;)
[+35]Jumpman

Jumpman

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Races
« Reply #1 on: April 27, 2016, 01:47:07 AM »
Now I have not been here from the beginning and understand there have been many zip files you could download (free races and addons) so there must be some of you who have some racer I can get.

You already has had the opportunity for this and most files is broken when i download them, so I will be very happy if any of you would spend some time and upload some races to me.

Thanks in advance
[+35]Jumpman

Revan

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Races
« Reply #2 on: April 27, 2016, 01:49:45 AM »
I can take a look if I still have some of those races on my old drive but no promises.
I'm not home right now so it'll take a few hours.
#war3source on gamesurge

Revan

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Races
« Reply #3 on: April 27, 2016, 08:27:57 AM »
Okay, I attached a package with a few races. Please note that some races are poor quality and I'm not sure if they even compile.
Most of the stuff was modified(to add visual fx or to balance them a bit) by either vulpone or me back in the day.
The races are made by different authors, check the individual file for information.
« Last Edit: April 27, 2016, 08:29:52 AM by Revan »
#war3source on gamesurge

Jumpman

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Races
« Reply #4 on: April 27, 2016, 10:06:09 AM »
Thanks Revan

I just thinging there must be a lot of user here in forum there have som races they downloaded before in time for free they could share with me, or do i need to pay for races to get more than the races in the standard package you can download on http://ownageclan.com/jenkins/job/War3Source-Default1/ i dont understand why War3Source is free for all when there are not so many races to download, many servers have over 100 meaby up to 200 races and it is impossible to find more races for this mod her in forum, i thing im look the hole forum through now, cant find any more races unfortunately.

There was 4 races i could compile and use the rest give me errors not warnings :-(

Compiled:
War3Source_ClockWerkGoblin.smx
War3Source_Cunning_Murderer.smx (i all ready have)
War3Source_CustomRace_Zergling.smx
War3Source_TrollBatRider.smx

Errors:
War3Source_Agent.sp(117) : error 025: function heading differs from prototype
War3Source_CustomRace_Element.sp(145) : error 025: function heading differs from prototype
War3Source_CustomRace_FlamePredator.sp(80) : error 017: undefined symbol "War3_SetMaxHP"
War3Source_CustomRace_FlamePredator.sp(121) : error 025: function heading differs from prototype
War3Source_CustomRace_LuckyStrike.sp(103) : error 025: function heading differs from prototype
War3Source_CustomRace_LuckyStrike.sp(113) : error 017: undefined symbol "DealDamageWrapper"
War3Source_CustomRace_UnholyEntity.sp(118) : error 025: function heading differs from prototype
War3Source_FarSeer.sp(16) : fatal error 180: cannot read from file: "revantools.inc"

So i have 36 races + the 3 races from you thats not mush for a W3S server but better than nothing.

But many thanks for you time to find some races for me that i appreciate :-)
« Last Edit: April 27, 2016, 01:03:42 PM by Jumpman »
[+35]Jumpman

abgar

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Re: Races
« Reply #5 on: April 27, 2016, 05:27:26 PM »
Those errors should all be pretty easy to resolve if you take a look at the codes that Revan provided, and also the war3 API / includes etc.

For the Function prototype errors, change:
public OnWar3EventPostHurt( victim, attacker, damage )
to
public OnWar3EventPostHurt(victim, attacker, Float:damage, const String:weapon[32], bool:isWarcraft)


For the Flame Pred SetMaxHP - it's because that function no longer exists.  Set the HP using a native buff in the OnWar3PluginReady function:
War3_AddSkillBuff(thisRaceID,SKILL_SPEEDHP,iAdditionalMaxHealth,FlameHP);  (and delete rows 81 to 85 as no longer needed).

For Lucky Strike, just uncomment the War3_DealDamage row, and comment out the DealDamageWrapper row

For FarSeer - just comment out the the row that includes RevanTools - as it's not needed in that file anymore.


As for more races, here are some that i found lying around - haven't tested these - but i assume some may have the same type of errors - easily resolved if you read the error and the code.  Note these are quite old, haven't been updated in a long time - so no guarantees on current functionality without updates etc.
**edit - As a disclaimer, i did not make any of these races - authors should be credited in each file.  They are ones that were downloaded previously

Jumpman

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Races
« Reply #6 on: April 28, 2016, 12:43:25 AM »
Thanks i work, im not god to code but i give it a try.

Lucky Strike, do that races have 5 skills ?

I dont understand where you find more races i not lie but i think i look/search the hole forum for races and downloade what i could find, so what you do to find more races have you found them her in forum ?
« Last Edit: April 28, 2016, 01:39:40 AM by Jumpman »
[+35]Jumpman

abgar

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Re: Races
« Reply #7 on: April 28, 2016, 01:38:47 AM »
Most of the ones i posted were downloaded a while ago - so when i say 'lying around', i meant lying around on my hard drive lol.

That being said though, i do know for a fact that there are some races linked as separate SP within existing forum topics....
i.e. - posts 17, 49, 64, 72, 101 of this thread: http://war3source.com/index.php?topic=490.0

It's worth checking around, because there are still a lot of races available on this forum, that may just need to be updated.  It's also well worth learning SourcePawn, so you can make / update your own races as well.
Once you learn, you realise that only your imagination is the limit to creating new and exciting races

Jumpman

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Races
« Reply #8 on: April 28, 2016, 01:45:56 AM »
Thanks i will read about SourcePawn and try to learn to code that will be great to have my own races sometime :-)

./compile.sh War3Source_205_Vagabond.sp
War3Source_205_Vagabond.sp(284) : warning 213: tag mismatch
[+35]Jumpman

Jumpman

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Races
« Reply #9 on: April 28, 2016, 02:15:59 AM »
http://war3source.com/index.php?topic=490.0

I allready try to download racepack you link to see my post on site 5 most of the zip files i try to download dont work

From site 5: I just downloaded RacePack.zip but when i want to unpack the .zip file i get Zip file corrupt
[+35]Jumpman

abgar

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Re: Races
« Reply #10 on: April 28, 2016, 05:18:08 AM »
i.e. - posts 17, 49, 64, 72, 101 of this thread: http://war3source.com/index.php?topic=490.0

Not the racepack.zip file.  Go through the different posts in that topic (you'll see there's five pages of them), and on some of them, there are links to the individual .SP file

Jumpman

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Races
« Reply #11 on: May 02, 2016, 09:31:30 AM »
abgar

Im missing some translate files to the Races.rar file you upload to me

L 05/02/2016 - 17:15:27: [SM] Fatal error encountered parsing translation file "w3s.race.raps.phrases.txt"
L 05/02/2016 - 17:15:27: [SM] Error (line 0, column 0): Stream failed to open
L 05/02/2016 - 17:15:27: [SM] Fatal error encountered parsing translation file "w3s.race.ninja.phrases.txt"
L 05/02/2016 - 17:15:27: [SM] Error (line 0, column 0): Stream failed to open
L 05/02/2016 - 17:15:27: [SM] Fatal error encountered parsing translation file "w3s.race.ghoul.phrases.txt"
L 05/02/2016 - 17:15:27: [SM] Error (line 0, column 0): Stream failed to open

I hope becourse of this missing files that i get this errors to i just compile every files in sourcemod compile.sh on my server and then move the compiled files to plugins/w3s/ folder: (no files are modify)
Code: [Select]
L 05/02/2016 - 17:15:30: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 05/02/2016 - 17:15:30: [SM] Native "Format" reported: Language phrase "raps_RaceName" not found
L 05/02/2016 - 17:15:30: [SM] Displaying call stack trace for plugin "w3s/War3Source_Engine_RaceClass.smx":
L 05/02/2016 - 17:15:30: [SM]   [0]  Line 1162, War3Source_Engine_RaceClass.sp::GetRaceName()
L 05/02/2016 - 17:15:30: [SM]   [1]  Line 715, War3Source_Engine_RaceClass.sp::Native_War3_GetRaceName()
L 05/02/2016 - 17:15:30: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 05/02/2016 - 17:15:30: [SM] Native "War3_GetRaceName" reported: Error encountered while processing a dynamic native
L 05/02/2016 - 17:15:30: [SM] Displaying call stack trace for plugin "w3s/War3Source_Engine_MenuChangerace.smx":
L 05/02/2016 - 17:15:30: [SM]   [0]  Line 276, War3Source_Engine_MenuChangerace.sp::War3Source_ChangeRaceMenu()
L 05/02/2016 - 17:15:30: [SM]   [1]  Line 131, War3Source_Engine_MenuChangerace.sp::OnWar3Event()
L 05/02/2016 - 17:15:30: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 05/02/2016 - 17:15:30: [SM] Native "Format" reported: Language phrase "raps_RaceName" not found
L 05/02/2016 - 17:15:30: [SM] Displaying call stack trace for plugin "w3s/War3Source_Engine_RaceClass.smx":
L 05/02/2016 - 17:15:30: [SM]   [0]  Line 1162, War3Source_Engine_RaceClass.sp::GetRaceName()
L 05/02/2016 - 17:15:30: [SM]   [1]  Line 715, War3Source_Engine_RaceClass.sp::Native_War3_GetRaceName()
L 05/02/2016 - 17:15:30: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 05/02/2016 - 17:15:30: [SM] Native "War3_GetRaceName" reported: Error encountered while processing a dynamic native
L 05/02/2016 - 17:15:30: [SM] Displaying call stack trace for plugin "w3s/War3Source_Engine_MenuChangerace.smx":
L 05/02/2016 - 17:15:30: [SM]   [0]  Line 276, War3Source_Engine_MenuChangerace.sp::War3Source_ChangeRaceMenu()
L 05/02/2016 - 17:15:30: [SM]   [1]  Line 131, War3Source_Engine_MenuChangerace.sp::OnWar3Event()
[+35]Jumpman

abgar

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Re: Races
« Reply #12 on: May 02, 2016, 10:41:17 PM »
Ok - here's the changes required to remove the translation requirement:
Rapscallian: Change Row 146 from:  War3_ChatMessage(attacker, "%T", "Blade", attacker);    TO     War3_ChatMessage(attacker, "Blade");
AND, remove Row 62     LoadTranslations("w3s.race.raps.phrases");

For Ninja: Change Row 239 FROM: PrintHintText(victim,"%T","You disapear in the shadows",victim);        TO      PrintHintText(victim,"You disapear in the shadows");
AND, remove Row 50:    LoadTranslations("w3s.race.ninja.phrases");

For Ghoul:  Just remove Row number 54:     LoadTranslations("w3s.race.ghoul.phrases");



Why did you recompile every file in sourcemod compile.sh?  You don't ever need to do that unless you make changes to specific files.


Jumpman

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Races
« Reply #13 on: May 03, 2016, 02:16:32 AM »
I just think when i make change in a .sp file it need to be compiled, and yes i did not make change all that files i just upload every files in my scripting folder and not thinking only to compile my changed files, it was much easier to compile them with War3*.sp :-)

I dont do that again only compile files i change :-)

And thansk for helping again every thing works no errors when compiling :-)

Agg funny i get the same errors after I followed your guide, maybe i need to download version 334 again and overwrite the default files like War3Source_Engine_RaceClass.smx and so on ?

Code: [Select]
L 05/03/2016 - 10:43:16: SourceMod error session started
L 05/03/2016 - 10:43:16: Info (map "de_dust2") (file "errors_20160503.log")
L 05/03/2016 - 10:43:16: [SM] Fatal error encountered parsing translation file "w3s.race.raps.phrases.txt"
L 05/03/2016 - 10:43:16: [SM] Error (line 0, column 0): Stream failed to open
L 05/03/2016 - 10:43:16: [SM] Fatal error encountered parsing translation file "w3s.race.ninja.phrases.txt"
L 05/03/2016 - 10:43:16: [SM] Error (line 0, column 0): Stream failed to open
L 05/03/2016 - 10:43:16: [SM] Fatal error encountered parsing translation file "w3s.race.ghoul.phrases.txt"
L 05/03/2016 - 10:43:16: [SM] Error (line 0, column 0): Stream failed to open
L 05/03/2016 - 10:43:16: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 05/03/2016 - 10:43:16: [SM] Native "Format" reported: Language phrase "raps_RaceName" not found
L 05/03/2016 - 10:43:16: [SM] Displaying call stack trace for plugin "w3s/War3Source_Engine_RaceClass.smx":
L 05/03/2016 - 10:43:16: [SM]   [0]  Line 1162, War3Source_Engine_RaceClass.sp::GetRaceName()
L 05/03/2016 - 10:43:16: [SM]   [1]  Line 715, War3Source_Engine_RaceClass.sp::Native_War3_GetRaceName()
L 05/03/2016 - 10:43:16: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 05/03/2016 - 10:43:16: [SM] Native "War3_GetRaceName" reported: Error encountered while processing a dynamic native
L 05/03/2016 - 10:43:16: [SM] Displaying call stack trace for plugin "w3s/War3Source_Engine_MenuChangerace.smx":
L 05/03/2016 - 10:43:16: [SM]   [0]  Line 276, War3Source_Engine_MenuChangerace.sp::War3Source_ChangeRaceMenu()
L 05/03/2016 - 10:43:16: [SM]   [1]  Line 131, War3Source_Engine_MenuChangerace.sp::OnWar3Event()
L 05/03/2016 - 10:43:16: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 05/03/2016 - 10:43:16: [SM] Native "Format" reported: Language phrase "raps_RaceName" not found
L 05/03/2016 - 10:43:16: [SM] Displaying call stack trace for plugin "w3s/War3Source_Engine_RaceClass.smx":
L 05/03/2016 - 10:43:16: [SM]   [0]  Line 1162, War3Source_Engine_RaceClass.sp::GetRaceName()
L 05/03/2016 - 10:43:16: [SM]   [1]  Line 715, War3Source_Engine_RaceClass.sp::Native_War3_GetRaceName()
L 05/03/2016 - 10:43:16: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 05/03/2016 - 10:43:16: [SM] Native "War3_GetRaceName" reported: Error encountered while processing a dynamic native
L 05/03/2016 - 10:43:16: [SM] Displaying call stack trace for plugin "w3s/War3Source_Engine_MenuChangerace.smx":
L 05/03/2016 - 10:43:16: [SM]   [0]  Line 276, War3Source_Engine_MenuChangerace.sp::War3Source_ChangeRaceMenu()
L 05/03/2016 - 10:43:16: [SM]   [1]  Line 131, War3Source_Engine_MenuChangerace.sp::OnWar3Event()
L 05/03/2016 - 10:43:17: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 05/03/2016 - 10:43:17: [SM] Native "Format" reported: Language phrase "raps_RaceName" not found
L 05/03/2016 - 10:43:17: [SM] Displaying call stack trace for plugin "w3s/War3Source_Engine_RaceClass.smx":
L 05/03/2016 - 10:43:17: [SM]   [0]  Line 1162, War3Source_Engine_RaceClass.sp::GetRaceName()
L 05/03/2016 - 10:43:17: [SM]   [1]  Line 715, War3Source_Engine_RaceClass.sp::Native_War3_GetRaceName()
L 05/03/2016 - 10:43:17: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 05/03/2016 - 10:43:17: [SM] Native "War3_GetRaceName" reported: Error encountered while processing a dynamic native
L 05/03/2016 - 10:43:17: [SM] Displaying call stack trace for plugin "w3s/War3Source_Engine_Statistics.smx":
L 05/03/2016 - 10:43:17: [SM]   [0]  Line 520, War3Source_Engine_Statistics.sp::ExecOnceTimer()
« Last Edit: May 03, 2016, 02:58:18 AM by Jumpman »
[+35]Jumpman

abgar

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Re: Races
« Reply #14 on: May 03, 2016, 03:12:16 AM »
Might be worthwhile :)  I'd say you've still got a copy of the original rapscallian, ghoul and ninja on the server, that's why it's showing in the error logs.

If you've got a true scripting environment setup (as in separate to the actual server), then you can just delete all pre-compiled folders and sp files, so that it's a clean development - just make sure you keep all the INC files in place, as they're needed for the compiler to work.
i.e. - my ACTUAL Game server (local host) is \\Games\MyServer\cstrike\addons\sourcemod\plugins\w3s
However my scripting environment is \\Games\MyServer\--Dev\scripting

So, i can make any changes i want in my scripting directory (which has it's own compiler and copies of incs, etc) and it won't impact the actual server, until i copy compiled smx file from scripting to host.  Hope that makes sense lol

Jumpman

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Races
« Reply #15 on: May 03, 2016, 03:40:43 AM »
I just look i dont have any copys of the original rapscallian, ghoul and ninja on the server

The 3 files i have name
War3Source_080_Ghoul.smx
War3Source_080_Rapscallion.smx
War3Source_CustomRace_Ninja.smx

my folders are on my linux box
/home/xxxxx/xxxxx/servers/source3/cstrike/addons/sourcemod/plugins/w3s
/home/xxxxx/xxxxx/servers/source3/cstrike/addons/sourcemod/scripting

I compile files on my linux box from folder
/home/xxxxx/scripting and copy the .smx files to /home/xxxxx/xxxxx/servers/source3/cstrike/addons/sourcemod/plugins/w3s

This is all my races
Code: [Select]
War3Source_000_Archmage.smx
War3Source_000_PandarenBrewmaster.smx
War3Source_000_SpellBreaker.smx
War3Source_000_SpiritWalker.smx
War3Source_001_UndeadScourge.smx
War3Source_002_HumanAlliance.smx
War3Source_003_OrcishHorde.smx
War3Source_004_NightElf.smx
War3Source_005_BloodMage.smx
War3Source_006_ShadowHunter.smx
War3Source_007_Warden.smx
War3Source_008_CryptLord.smx
War3Source_008_DruidoftheTalon.smx
War3Source_009_CorruptedDisciple.smx
War3Source_010_SoulReaper.smx
War3Source_011_BloodHunter.smx
War3Source_012_Naix.smx
War3Source_013_KeeperOfTheGrove.smx
War3Source_013_SuccubusHunter.smx
War3Source_014_Chronos.smx
War3Source_015_Lich.smx
War3Source_016_SacredWarrior.smx
War3Source_017_Hammerstorm.smx
War3Source_018_ObsidianStatue.smx
War3Source_018_Scout.smx
War3Source_019_BladeMaster.smx
War3Source_019_DarkElf.smx
War3Source_020_TaurenChieftain.smx
War3Source_022_Rarity.smx
War3Source_023_RainbowDash.smx
War3Source_028_Luna.smx
War3Source_038_NagaSeaWitch.smx
War3Source_070_Headcrab.smx
War3Source_080_Ghoul.smx
War3Source_080_Rapscallion.smx
War3Source_121_Wisp.smx
War3Source_998_Grunt.smx
War3Source_999_GunGamer.smx
War3Source_999_LaraCroft.smx
War3Source_Agent.smx
War3Source_Artisan.smx
War3Source_ClockWerkGoblin.smx
War3Source_Cunning_Murderer.smx
War3Source_CustomRace_Element.smx
War3Source_CustomRace_FlamePredator.smx
War3Source_CustomRace_LuckyStrike.smx
War3Source_CustomRace_Lurker.smx
War3Source_CustomRace_Ninja.smx
War3Source_CustomRace_Paladin.smx
War3Source_CustomRace_Panorama.smx
War3Source_CustomRace_UnholyEntity.smx
War3Source_CustomRace_Zergling.smx
War3Source_DarkDruid.smx
War3Source_Dovahkiin.smx
War3Source_Drunken_Beggar.smx
War3Source_FarSeer.smx
War3Source_Gamemode_Singularity.smx
War3Source_Glodzilla.smx
War3Source_iNCRED_Gul'dan.smx
War3Source_Jigsaw.smx
War3Source_Leprechaun.smx
War3Source_Phantom.smx
War3Source_Spy.smx
War3Source_Thief.smx
War3Source_TrollBatRider.smx
War3Source_UberSoldier.smx
[+35]Jumpman

abgar

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Re: Races
« Reply #16 on: May 03, 2016, 04:02:21 AM »
Well your setup seems ok, so it might just be a weird glitch - try re-installing your war3source and see how that goes?

Jumpman

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Races
« Reply #17 on: May 03, 2016, 07:44:16 AM »
Hmm i make a re-installing of the hole server and still have same problem hmm

When i delete the 3 races problem go away don understand a f... why it do like this i have follow your guide recompiled the 3 races and uploaded the 3 new .smx files to plugins/w3s folder

« Last Edit: May 03, 2016, 07:53:48 AM by Jumpman »
[+35]Jumpman

Jumpman

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Races
« Reply #18 on: May 07, 2016, 04:00:49 PM »
I still dont understand my error logs give me this error this races i change to not use translations im getting old before time :-)

L 05/07/2016 - 22:37:55: [SM] Fatal error encountered parsing translation file "w3s.race.vagabond.phrases.txt"
L 05/07/2016 - 22:37:55: [SM] Error (line 0, column 0): Stream failed to open
L 05/07/2016 - 22:37:55: [SM] Fatal error encountered parsing translation file "w3s.race.raps.phrases.txt"
L 05/07/2016 - 22:37:55: [SM] Error (line 0, column 0): Stream failed to open
L 05/07/2016 - 22:37:55: [SM] Fatal error encountered parsing translation file "w3s.race.ninja.phrases.txt"
L 05/07/2016 - 22:37:55: [SM] Error (line 0, column 0): Stream failed to open
L 05/07/2016 - 22:37:55: [SM] Fatal error encountered parsing translation file "w3s.race.ghoul.phrases.txt"
L 05/07/2016 - 22:37:55: [SM] Error (line 0, column 0): Stream failed to open
[+35]Jumpman

abgar

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Re: Races
« Reply #19 on: May 07, 2016, 06:13:29 PM »
Did you remove the line that says similar to:

LoadTranslations("w3s.race.raps.phrases");

from each of those files?  It looks as though there's something on your server that's still looking for those files.... 

You need to make sure that for each of those races, you remove the LoadTranslatioins line completely, change any messages that include %t in them, AND change the skill names and descriptions to remove translation (inlcuding changing War3_AddRaceSkillT to remove the T at the end).

Maybe post one of your files after you've updated them if still getting the error?

Jumpman

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Races
« Reply #20 on: May 08, 2016, 01:08:18 PM »
Ok i change War3_AddRaceSkillT to War3_AddRaceSkill and War3_CreateNewRaceT to War3_CreateNewRace now i just get many errors when i compile

Code: [Select]
War3Source_080_Ghoul.sp(66) : error 092: number of arguments does not match definition
War3Source_080_Ghoul.sp(67) : error 035: argument type mismatch (argument 3)
War3Source_080_Ghoul.sp(68) : error 035: argument type mismatch (argument 3)
War3Source_080_Ghoul.sp(69) : error 035: argument type mismatch (argument 3)
War3Source_080_Ghoul.sp(70) : error 035: argument type mismatch (argument 3)

War3Source_080_Rapscallion.sp(50) : error 092: number of arguments does not match definition
War3Source_080_Rapscallion.sp(51) : error 035: argument type mismatch (argument 3)
War3Source_080_Rapscallion.sp(52) : error 035: argument type mismatch (argument 3)
War3Source_080_Rapscallion.sp(53) : error 035: argument type mismatch (argument 3)
War3Source_080_Rapscallion.sp(54) : error 035: argument type mismatch (argument 3)

War3Source_205_Vagabond.sp(74) : error 092: number of arguments does not match definition
War3Source_205_Vagabond.sp(76) : error 035: argument type mismatch (argument 3)
War3Source_205_Vagabond.sp(77) : error 035: argument type mismatch (argument 3)
War3Source_205_Vagabond.sp(78) : error 035: argument type mismatch (argument 3)
War3Source_205_Vagabond.sp(79) : error 035: argument type mismatch (argument 3)

War3Source_CustomRace_Ninja.sp(79) : error 092: number of arguments does not match definition
War3Source_CustomRace_Ninja.sp(80) : error 035: argument type mismatch (argument 3)
War3Source_CustomRace_Ninja.sp(81) : error 035: argument type mismatch (argument 3)
War3Source_CustomRace_Ninja.sp(82) : error 035: argument type mismatch (argument 3)
War3Source_CustomRace_Ninja.sp(83) : error 035: argument type mismatch (argument 3)
War3Source_CustomRace_Ninja.sp(84) : error 035: argument type mismatch (argument 3)

Funny when compile with War3_AddRaceSkillT i get no errors but then i get errors in my log files about missing translations files
Code: [Select]
public OnWar3LoadRaceOrItemOrdered2(num)
{
if(num==80)
{
thisRaceID=War3_CreateNewRaceT("raps");
SKILL_SPEED=War3_AddRaceSkillT(thisRaceID,"1",false,4);
SKILL_BLADE=War3_AddRaceSkillT(thisRaceID,"2",false,4);
SKILL_LOWGRAV=War3_AddRaceSkillT(thisRaceID,"3",false,4);
SKILL_INVISIBLE=War3_AddRaceSkillT(thisRaceID,"4",true,4);

War3_CreateRaceEnd(thisRaceID);
}
}
I newer learn to make new races when i cant find out making small fixes maybe i just stupid and not understand the system
« Last Edit: May 08, 2016, 01:17:35 PM by Jumpman »
[+35]Jumpman

Revan

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Races
« Reply #21 on: May 08, 2016, 01:19:45 PM »
AddRaceSkill and AddRaceSkillT expect different parameters you cannot just exchange them without taking care of that first.

1. Open the function reference and look for the func you are interested in.
2. Replace AddRaceSkillT with AddRaceSkill and specify EVERY parameter in their respective order (for example: AddRaceSkillT is missing the description parameter because it is fetched from the translation file).

quick example:
Code: [Select]
// old code
SKILL_SPEED=War3_AddRaceSkillT(thisRaceID,"1",false,4);
// new code
SKILL_SPEED=War3_AddRaceSkill(thisRaceID, "Name of Skill#1", "Description of Skill#1", false, 4);
#war3source on gamesurge

Jumpman

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Races
« Reply #22 on: May 08, 2016, 02:15:28 PM »
Ok thanks Revan it makes sense, but when you do not know what should be included in the Description of skills to each races form the translation file i not have, now i was just lucky to find something about raps but how to make the Description of Skills when i not know what the do, yes i can see and know what Invisibility is but its hard to write a explanation from just one word Blade i dont know and this i just from raps race ?

Code: [Select]
thisRaceID=War3_CreateNewRaceT("raps");
SKILL_SPEED=War3_AddRaceSkillT(thisRaceID,"Adrinaline",false,4);
SKILL_BLADE=War3_AddRaceSkillT(thisRaceID,"Blade",false,4);
SKILL_LOWGRAV=War3_AddRaceSkillT(thisRaceID,"Levitation",false,4);
SKILL_INVISIBLE=War3_AddRaceSkillT(thisRaceID,"Invisibility",true,4);

Lets take Ghoul
Code: [Select]
CANN=War3_AddRaceSkill(thisRaceID,"1",false,5); I dont know what skill name 1 is and therfore i can not write a explanation to 1 when i do not know what 1 is name CANN hope you understand my problem, but i will not give up now the problem just to change races other have make so it will work on the server first :-)
[+35]Jumpman

Jumpman

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Races
« Reply #23 on: May 08, 2016, 05:31:00 PM »
Think i solved my problem i test it tomorrow to late now and confirm if they works, thanks Revan

Code: [Select]
thisRaceID=War3_CreateNewRace("Ghoul", "ghoul");
CANN=War3_AddRaceSkill(thisRaceID, "Canibalize", "Eat freshly killed bodies to gain health", false, 4);
FREN=War3_AddRaceSkill(thisRaceID, "Ghoul Frenzy", "More Movement speed and attack speed", false, 4);
UNHS=War3_AddRaceSkill(thisRaceID, "Unholy Strength", "More Damage", false, 4);
UNHA=War3_AddRaceSkill(thisRaceID, "Unholy Armor", "Raise your max HP for Canibalizing", true, 4);
War3_CreateRaceEnd(thisRaceID);

thisRaceID=War3_CreateNewRace("Raps", "raps");
SKILL_SPEED=War3_AddRaceSkill(thisRaceID, "Adrinaline", "You run 7-28%% faster", false, 4);
SKILL_BLADE=War3_AddRaceSkill(thisRaceID, "Blade", "20-80%% chance of double damage", false, 4);
SKILL_LOWGRAV=War3_AddRaceSkill(thisRaceID, "Levitation", "You can jump higher\n20-60%% less gravity", false, 4);
SKILL_INVISIBLE=War3_AddRaceSkill(thisRaceID, "Complete Invisibility", "Gain complete invisibility, but cannot move", true, 4);
War3_CreateRaceEnd(thisRaceID);

thisRaceID = War3_CreateNewRace("Vagabond", "vagabond");
SKILL_SPEED = War3_AddRaceSkill(thisRaceID, "Adrenaline", "Speed", false);
SKILL_SCOUT = War3_AddRaceSkill(thisRaceID, "Scout", "Extra Damage", false);
SKILL_LOWGRAV = War3_AddRaceSkill(thisRaceID, "Levitation", "Levitation", false);
ULT_INVIS_TELE = War3_AddRaceSkill(thisRaceID, "Complete Invisibility", "Teleport and become completely invisible when not moving(can't move)", true);
W3SkillCooldownOnSpawn( thisRaceID, ULT_INVIS_TELE, 5.0, _ );
War3_CreateRaceEnd( thisRaceID );

  thisRaceID=War3_CreateNewRace("Ninja", "ninja");
SKILL_INVIS=War3_AddRaceSkill(thisRaceID, "Camo", "Blend in with the environment", false,6);
  SKILL_LONGJUMP=War3_AddRaceSkill(thisRaceID, "Long Jump", "Jump farther", false,6);
  SKILL_DODGE=War3_AddRaceSkill(thisRaceID, "Dodge Bullets", "Evade Bullets", false,6);
SKILL_VANISH=War3_AddRaceSkill(thisRaceID, "Vanish", "Chance to vanish into thin air when hit", false,6);
  ULT_ASSASSINATION=War3_AddRaceSkill(thisRaceID, "Assassination", "Get behind a random enemy", true,6);
War3_CreateRaceEnd(thisRaceID);
[+35]Jumpman