Plugin Not Working on Linux?
1 Attachment(s)
I have rewritten an old Day of Defeat plugin, Drop Grenades. I posted it up on DOD Plugins.net and some of the linux users are having a bit of difficulty. It seems to run absolutely fine on windows, but something seems to be up with linux.
Quote:
Attached is the sma for the plugin. Thanks for your help guys. |
Re: Plugin Not Working on Linux?
Some 1 please try to fix this plugin, alot of people need this.
|
Re: Plugin Not Working on Linux?
Any 1 please... :oops:
|
Re: Plugin Not Working on Linux?
Don't bump.
|
Re: Plugin Not Working on Linux?
6 Attachment(s)
Here.
I added a time delay for touch so they don't pick up the grenade back up again when they drop it. I used pdata native instead of dod_set_user_ammo. Also added a fix for g_cvarSmoke = get_cvar_pointer(... If the Zor plugin wasn't loaded you would get an runtime error since get_cvar_pointer will return invalid pointer. I also found out that dod_get/set_user_ammo for DODW_HANDGRENADE and DODW_STICKGRENADE were using offsets that don't really deal with ammo amount. When setting those other offset did nothing to change the grenades that was in dod_get/set_user_ammo for the hand grenade and stick grenade had no affect on adding more or taking away from their grenade ammo. DODW_HANDGRENADE: 289 DODW_STICKGRENADE: 291 +5 for linux Only the two values above did something Also you can instead of hooking think. You can let the engine remove it for you ( I think this should work since the next think of the entity is get_gametime() + x seconds. Code:
Then the engine will remove it when it time. and remove the Think forward edit: One more change... You need to move get_cvar_pointer to plugin_cfg .. You have to do that in there if it a register cvar from another plugin. Or you will have to set this plugin under the other plugin with that cvar. LINUX VERSION TESTED ONLY. |
Re: Plugin Not Working on Linux?
I tried to compile this with amxx 1.76c
temp.sma(434) : error 017: undefined symbol "AMMO_GREN" temp.sma(434) : error 088: number of arguments does not match definition 2 Errors. Could not locate output file ../amxx/dod_dropgrenades2.1.76c.amx (compile failed). |
Re: Plugin Not Working on Linux?
Quote:
It fixed .. seem like AMMO_* constants are only in 1.8 AMXx in the svn. I added a thing to fix that problem and still be compatible with 1.8 in the future. |
Re: Plugin Not Working on Linux?
Ok here is the bugs that it currently has...
After that little fix you did it now compiles fine with amxx 1.76c:up: Only axis drop nades when they die even doh max amount of nades aloud to pick i put was 20, you cannot pick up more then 3 from the enemy, but if ur teamate preses the drop grade key then it has no problems. Allies dont drop nades on the ground when they die. |
Re: Plugin Not Working on Linux?
Quote:
|
Re: Plugin Not Working on Linux?
And now this again when i try to recompile it
temp.sma(420) : error 017: undefined symbol "AMMO_GREN" temp.sma(420) : error 088: number of arguments does not match definition 2 Errors. Could not locate output file ../amxx/dod_dropgrenades2.1.76c.amx (compile failed). |
| All times are GMT -4. The time now is 06:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.