|
Title: Race Compile Error Post by: Grinlock on April 30, 2012, 10:23:33 PM http://184.82.206.28/raceerror.png
Hey, I'd really appreciate tour help on this one thanks. I downloaded race pack: http://war3source.com/index.php?topic=490.0 All common races use across many servers. When I complied these races all I get out of the 29 races are 3 complied, leaving 26 races unable, un-compiled. I get these races, oddity sniper, Auramaster, Panorama, none of the others... How did I compile? I download all latest packs. [sdkhooks-2.1.0-windows.zip, sourcemod-1.4.2-windows.zip, War3SourceP1.2.3.6.rar] for windows. then putting all file where they should be. [addons\sourcemod\scripting\W3SIncs] & [addons\sourcemod\scripting\include\(sdkhooks stuff)] & 9race include fine)[addons\sourcemod\scripting\include\haaaxfunctions.inc], and of course the races in [addons\sourcemod\scripting] Then ran the compile.exe, it reports back I have 3 compluied races ready to be used, and 26 races are errors!!! example from above: (http://184.82.206.28/raceerror.png) Title: Re: Race Compile Error Post by: Ownz on April 30, 2012, 10:28:17 PM that race pack as been abandoned by the author a long time ago.
Title: Re: Race Compile Error Post by: Grinlock on April 30, 2012, 10:34:07 PM So are you saying this race pack is broken?
Or unusable due to new releases? Just asking for my understanding, just because the author abandoned the races, doesn't mean they shouldn't work. These races are on many different servers that I have been on. Title: Re: Race Compile Error Post by: Ownz on April 30, 2012, 10:44:12 PM broken and maintained by nobody publically
and the problem is, those that have fixed it don't share it Title: Re: Race Compile Error Post by: Grinlock on April 30, 2012, 10:50:02 PM Time to get my hack on ;)
Jokes, well in that case, that sucks. So by what you said, these races didn't work when they were released? I cant get an old version of War3Source and compile them? Time to start learning to to build races then, maybe I can fix a few. Title: Re: Race Compile Error Post by: Ownz on April 30, 2012, 10:53:35 PM why not use existing supported quality races instead?
Title: Re: Race Compile Error Post by: Grinlock on April 30, 2012, 10:56:56 PM Thanks for the help Ownz so far
Just finding them is an effort and a half. And I'd like them races. Title: Re: Race Compile Error Post by: Grinlock on April 30, 2012, 11:45:04 PM Here is a chicken fix, I just want to see what it done, Don't have any models for it, or the sounds...
http://184.82.206.28/War3Source_Chicken.sp Title: Re: Race Compile Error Post by: Grinlock on May 01, 2012, 01:35:29 AM Alright, these 29(-agent) Races seem really easy to fix.
I have done a couple, Once they are done, I'll re-upload and share for you all. Title: Re: Race Compile Error Post by: Grinlock on May 01, 2012, 03:39:30 AM Alright, I have fixed/workarounds on 23 races. They now work on the latest version.
These races are: Wisp, [Oddity]Sniper, Auramaster, AVATAR, BoyScout, CrazyHound, FlamePred, Genocide, Luckystrike, Lurker, Molecule, Panorama, Raidem, SniperClass, Spierman, Strider Hiryu, Terran Ghost, Terran Space Marine, Risen, Vagabond, Zergling, Zeus. Through there are 7 other races I have to look into more. File attached. Title: Re: Race Compile Error Post by: Revan on May 01, 2012, 03:57:59 AM I've attached 2 of the unfinished races which has been updated by me (they should work with the recent w3s version)
I also added some effects to both Title: Re: Race Compile Error Post by: Grinlock on May 01, 2012, 04:06:04 AM Thanks for sharing them.
How do you remove the 26 errors when compiling? W3SIncs/War3Source_interface.inc : error [17/10/201/21] invalid/undefined/Symbol already defined I've only made workarounds, Not Fixed/Fixed. when Compile still get warning 234: symbol "OnRaceSelected" is marked as deprecated: Use OnRaceChanged(Client, oldrace, newrace); Sadly I read that error wrong. It's now an easy fix. Things are so much easier when u re-read things. I'll fix them ASAP, and re-upload. Title: Re: Race Compile Error Post by: Grinlock on May 01, 2012, 04:30:26 AM Here is the 25 Races now.
Title: Re: Race Compile Error Post by: Vulpone on May 01, 2012, 06:52:53 AM The reason that chicken was not supported is because i never released it to the public.
Anyway, I'll get you the sounds and the models if you really want the race. It was one of my first ones so it's mostly Copy-paste (another reason I never released it) edit: also, that chicken version is insanely outdated (typos and possibly bugs) so I'd not use it :p I abandoned the race a while back Title: Re: Race Compile Error Post by: Vulpone on May 01, 2012, 11:37:46 AM here are your files
Title: Re: Race Compile Error Post by: Grinlock on May 02, 2012, 12:35:55 AM Thanks mate, the race made me laugh as I read through it, thought I'd be a bit of fun.
Crack out an egg or two and tele around the map! Title: Re: Race Compile Error Post by: Vulpone on May 02, 2012, 05:16:38 AM Haha, yeah, it was supposed to be a goofy race.
Last time I checked it wasn't too OP on our servers, but you might need to tweak it to suit your game. Title: Re: Race Compile Error Post by: Grinlock on May 02, 2012, 07:06:00 AM Hey,
I've been looking at a few races I've been fixing up. And I've noticed that one of them is to deal damage to self, not heal, this is for TSM, Terran Space Marine!
Yay it heals, but It doesn't heal past 100Hp, Max HP is 150, so I added
This did work after casting "sm plugins refresh". Being happy I restart the server, It then didn't heal past 100HP Again. Here's the code. Quote public OnUltimateCommand( client, race, bool:pressed ) { if( race == thisRaceID && pressed && IsPlayerAlive( client ) && !Silenced( client ) ) { new ult_level = War3_GetSkillLevel( client, race, ULT_STIM ); if( ult_level > 0 ) { if( War3_SkillNotInCooldown( client, thisRaceID, ULT_STIM, true ) ) { War3_GetMaxHP( client ); War3_HealToMaxHP( client, HealthGain[ult_level] ); War3_SetBuff( client, fMaxSpeed, thisRaceID, StimSpeed[ult_level] ); War3_SetBuff( client, fAttackSpeed, thisRaceID, StimAttackSpeed[ult_level] ); CreateTimer( 8.0, StopStim, client ); War3_CooldownMGR( client, 15.0, thisRaceID, ULT_STIM, _, _ ); } } else { W3MsgUltNotLeveled( client ); } } } What Have I missed, or done slightly incorrectly? Title: Re: Race Compile Error Post by: Revan on May 02, 2012, 07:23:02 AM Idk what u are trying to do, since the idea behind that ultimate is "loose hp and get speed for a few of seconds" ?
you should be able to leave the ultimate untouched edit: You will heal to the Max hp when using that native, you can either increase the Max hp(with a buff) or manually heal to the target health Title: Re: Race Compile Error Post by: Grinlock on May 02, 2012, 07:57:24 AM Have I missed read the text on the ulti?
U Quote LT_STIM = War3_AddRaceSkill( thisRaceID, "Stim Pack", "You can heal your self a bit.", true, 5 ); Quote You can heal your self a bit. I read this as you gain HP.I'll continue with this being right, and what's it's meant to do for my knowledge, knowing it was fine.. What do you mean by this? "You will heal to the Max hp when using that native, you can either increase the Max hp(with a buff) or manually heal to the target health" The races MAX HP by skill is set to 150HP. What command should I be using if not Quote War3_HealToMaxHP( client, HealthGain[ult_level] ); So, why can i not heal past 100 when i have the getmaxhp command above it?Title: Re: Race Compile Error Post by: Revan on May 02, 2012, 08:34:42 AM Oh sorry I misunderstood you.
War3_GetMaxHP only retrieves the max amount of health a player can have normally. so you could either use War3_HealToMaxHP and heal to max HP or use War3HealToHP(client,addhp,maximumHP) to go beyond that limit. edit: if you want to use the first method show that skill which is increasing the maxhp since that way how to increase that value has been changed Title: Re: Race Compile Error Post by: Grinlock on May 02, 2012, 08:43:05 AM War3_HealToMaxHP( pram1, pram2 );
There isn't a pram3, how am I mean to do War3_HealToMaxHP(client,addhp,maximumHP) and "War3_HealToHP()" isn't a command. and If War3_GetMaxHP only retrieves the max amount of health a player can have normally, how do I get the increased health for use of abilities? Title: Re: Race Compile Error Post by: Vulpone on May 02, 2012, 08:47:39 AM If you just want him to have more HP, not raise maxHP (since if you raise maxHP, Mask of Death and Ring of Regen. will ALSO go up to the new maximum), use:
SetClientHealth(client, amount); that should do the job. It temporarily sets the HP to the person to this HP, WITHOUT touching MaxHP Title: Re: Race Compile Error Post by: Grinlock on May 02, 2012, 08:58:02 AM Again,
Quote SetClientHealth(client, amount); reports back error, undefined, not a command.Title: Re: Race Compile Error Post by: Revan on May 02, 2012, 02:05:30 PM I already wrote how to do this....
use War3HealToHP It IS a command i even checked the w3s interface. you probably added a underscore between War3 and HealToHp, Re read my previous Post please Title: Re: Race Compile Error Post by: Grinlock on May 02, 2012, 05:43:33 PM I have also checked the w3s interface,
I press find, typed in "HealToHP", comes back "No results" For at least the latest version this isn't a command from the w3s interface Title: Re: Race Compile Error Post by: Vulpone on May 03, 2012, 09:47:28 AM This sounds like some sort of joke l0l
No errors here with SetClientHealth (and you did NOT say you had tried it before.), no errors with the function revan describes either. Here's a direct copy-pasted version of the natives defined within War3Source_Interface.inc (latest, fresh off of the SVN) Code: /** * heals with the limit of (warcraft ) max hp * @noreturn */ native War3_HealToMaxHP(client,addhp); /** * heals with the limit of your specified HP * @noreturn */ stock War3HealToHP(client,addhp,maximumHP){ new currenthp=GetClientHealth(client); new newhp=currenthp+addhp; if(newhp>maximumHP){ newhp=maximumHP; } SetEntityHealth(client,newhp) } /** * heals to max hp * 1.5 buff in tf2 * no extra hp in other games * @noreturn */ native War3_HealToBuffHP(client,addhp); Title: Re: Race Compile Error Post by: Revan on May 03, 2012, 10:00:18 AM the proper command to set it manually is SetEntityHealth (http://docs.sourcemod.net/api/index.php?fastload=show&id=819)
Title: Re: Race Compile Error Post by: Grinlock on May 03, 2012, 08:21:10 PM This sounds like some sort of joke l0l Copy, paste & edit? I have the latest version, I get thisNo errors here with SetClientHealth (and you did NOT say you had tried it before.), no errors with the function revan describes either. Here's a direct copy-pasted version of the natives defined within War3Source_Interface.inc (latest, fresh off of the SVN) Code: /** * heals with the limit of (warcraft ) max hp * @noreturn */ native War3_HealToMaxHP(client,addhp); /** * heals with the limit of your specified HP * @noreturn */ stock War3HealToHP(client,addhp,maximumHP){ new currenthp=GetClientHealth(client); new newhp=currenthp+addhp; if(newhp>maximumHP){ newhp=maximumHP; } SetEntityHealth(client,newhp) } /** * heals to max hp * 1.5 buff in tf2 * no extra hp in other games * @noreturn */ native War3_HealToBuffHP(client,addhp); Quote /** * heals with the limit of (warcraft ) max hp * @noreturn */ native War3_HealToMaxHP(client,addhp); /** * heals to max hp * 1.5 buff in tf2 * no extra hp in other games * @noreturn */ native War3_HealToBuffHP(client,addhp); Just fyi, I downloaded all the w3s/sourcemod only the day before I posted about this issue. Server doesn't even say I have an out of date version. Latest off ownage clan site, War3SourceP1.2.3.6.rar the war3source_interface files doesn't have that command. Title: Re: Race Compile Error Post by: Revan on May 03, 2012, 11:32:23 PM I thought you were using the SVN. you should realy consider doing that
Title: Re: Race Compile Error Post by: Grinlock on May 04, 2012, 12:24:55 AM SVN, Where about do I get that one then?
http://www.ownageclan.com/wiki/index.php/Development:SVN ? Title: Re: Race Compile Error Post by: Grinlock on May 04, 2012, 01:30:07 AM Thank you so much, both of you.
I'm sorry I didn't realise there was a SVN Version. I Shouldn't have any more issues for now. I truly do appreciate your efforts to help someone new to the war3source code. Much nicer then some other communities. Title: Re: Race Compile Error Post by: Vulpone on May 04, 2012, 12:15:06 PM Thank you so much, both of you. I'm sorry I didn't realise there was a SVN Version. I Shouldn't have any more issues for now. I truly do appreciate your efforts to help someone new to the war3source code. Much nicer then some other communities. somehow feel like that was meant to be sarcastic D: but one way or the other, good luck! glad we could be somewhat of a help Title: Re: Race Compile Error Post by: Grinlock on May 05, 2012, 08:39:39 AM Not being sarcastic, Just a well brought up fella.
|