Raised This Month: $51 Target: $400
 12% 

Half-Life GunGame


Post New Thread Reply   
 
Thread Tools Display Modes
TheScaryGuy
Junior Member
Join Date: May 2020
Old 05-28-2020 , 12:10   Re: Half-Life GunGame
Reply With Quote #121

Quote:
Originally Posted by DJEarthQuake View Post
He only supports 1.8.2. I did it for the newer Amxx. When I compiled it on 1.10 and got it to load on DoD I noticed it did not have a bottomless clip but it did load. All the other stuff I ran into was a Windows crash for the clients on Gearbox. Luckily I never experienced the crash but lots of complaints came my way. Bypassing the next weapon HUD did handle it.
I have 1.8.2 installed on my computer to compile the sma. Still gets this error:

Quote:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// gungame2020.sma
// H:\Documents-C\E\HL1\DoD\TEK\TEK - GunGame - RichardBlain\dod\addons\amxmodx\scripting\gun game2020.sma(751) : error 029: invalid expression, assumed zero
// H:\Documents-C\E\HL1\DoD\TEK\TEK - GunGame - RichardBlain\dod\addons\amxmodx\scripting\gun game2020.sma(751 -- 755) : error 008: must be a constant expression; assumed zero
//
// 2 Errors.
// Could not locate output file H:\Documents-C\E\HL1\DoD\TEK\TEK - GunGame - RichardBlain\dod\addons\amxmodx\scripting\com piled\gungame2020.amx (compile failed).
//
// Compilation Time: 1.11 sec
// ----------------------------------------

Press enter to exit ...
TheScaryGuy is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 05-28-2020 , 14:37   Re: Half-Life GunGame
Reply With Quote #122

Works fine here on 1.8.2. Download it again from HERE to make sure you don't have some faulty version.
__________________

Mordekay is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-28-2020 , 21:11   Re: Half-Life GunGame
Reply With Quote #123

@TheScaryGuy: The 2020 version is for Amx 1.9 and 1.10. Since you are using 1.8 avoid it and go to the original post here.

Quote:
Compiling gungame2020.sma ...done
AMX Mod X Compiler 1.10.0.5390
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Header size: 5440 bytes
Code size: 103124 bytes
Data size: 37260 bytes
Stack/heap size: 16384 bytes
Total requirements: 162208 bytes
Done.
__________________

Last edited by DJEarthQuake; 05-28-2020 at 21:16.
DJEarthQuake is offline
TheScaryGuy
Junior Member
Join Date: May 2020
Old 05-28-2020 , 21:16   Re: Half-Life GunGame
Reply With Quote #124

Quote:
Originally Posted by Mordekay View Post
Works fine here on 1.8.2. Download it again from HERE to make sure you don't have some faulty version.
The problem is with the plugin because I can compile other sma files. I have noticed that every line has a tab in the begging of ever line and there are double carriage return/line-feeds, like this:
Code:
	#include <amxmodx>

	#include <amxmisc>

	#include <fun>

	#include <engine>

	#include <fakemeta>

	#include <hamsandwich>
Looking at other sma files, it looks like this:
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
TheScaryGuy is offline
TheScaryGuy
Junior Member
Join Date: May 2020
Old 05-28-2020 , 21:17   Re: Half-Life GunGame
Reply With Quote #125

Quote:
Originally Posted by DJEarthQuake View Post
@TheScaryGuy: The 2020 version is for Amx 1.9 and 1.10. Since you are using 1.8 avoid it and go to the original post here.
Thanks
TheScaryGuy is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-28-2020 , 21:25   Re: Half-Life GunGame
Reply With Quote #126

You are most welcome. Glad you found what you needed.
__________________
DJEarthQuake is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-28-2020 , 21:51   Re: Half-Life GunGame
Reply With Quote #127

Quote:
Originally Posted by TheScaryGuy View Post
The problem is with the plugin because I can compile other sma files. I have noticed that every line has a tab in the begging of ever line and there are double carriage return/line-feeds, like this:
Code:
	#include <amxmodx>

	#include <amxmisc>

	#include <fun>

	#include <engine>

	#include <fakemeta>

	#include <hamsandwich>
Looking at other sma files, it looks like this:
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
All that extra whitespace (assuming it was actually whitespace e.g. spaces or tabs) doesn't affect the compiler at all.

The issue in the 2020 file that DJ uploaded is simply sloppy coding, it has an unnecessary comma after the last item in an array definition. For some reason, someone thought it was a good idea for the newer compiler to ignore the bad comma.
__________________

Last edited by fysiks; 05-28-2020 at 21:59.
fysiks is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-29-2020 , 10:20   Re: Half-Life GunGame
Reply With Quote #128

Quote:
Originally Posted by fysiks View Post
All that extra whitespace (assuming it was actually whitespace e.g. spaces or tabs) doesn't affect the compiler at all.

The issue in the 2020 file that DJ uploaded is simply sloppy coding, it has an unnecessary comma after the last item in an array definition. For some reason, someone thought it was a good idea for the newer compiler to ignore the bad comma.
Show me the comma please.

Something I noticed about plugin and do not care for is it overwrites the official approved Gungame language file. https://forums.alliedmods.net/forumdisplay.php?f=104

Code:
Archive:  HLGunGame21.zip
   creating: configs/
   creating: configs/gungame/
  inflating: configs/gungame/gungame.ini  
  inflating: configs/gungame/gungame_cstrike.ini  
  inflating: configs/gungame/gungame_dod.ini  
  inflating: configs/gungame/gungame_gearbox.ini  
   creating: data/
   creating: data/lang/
  inflating: data/lang/gungame.txt   
  inflating: data/lang/gungame_clr.txt  
  inflating: data/lang/gungame_cstrike.txt  
   creating: scripting/
  inflating: scripting/gg_cstrike.sma  
  inflating: scripting/gungame.sma   
   creating: scripting/include/
  inflating: scripting/include/gungame.inc
This is what I see on a vanilla Dod install with 1.8.2 and this plugin from OP both downloaded a few minutes ago.

Code:
 
   Half-Life GunGame Copyright (c) 2014 serfreeman1337
   Version 2.1 build on 1, November (11), 2014

[GunGame] Offsets for Day Of Defeat loaded
[GunGame] Total 24 levels loaded from "gungame.ini" configuration file
L 05/29/2020 - 12:05:33: [HAMSANDWICH] Failed to retrieve vtable for "player", hook for "On_PlayerSpawn" not active.
L 05/29/2020 - 12:05:33: [AMXX] Displaying debug trace (plugin "gungame.amxx")
L 05/29/2020 - 12:05:33: [AMXX] Run time error 10: native error (native "RegisterHam")
L 05/29/2020 - 12:05:33: [AMXX]    [0] gungame.sma::Enable_GunGame (line 959)
L 05/29/2020 - 12:05:33: [AMXX]    [1] gungame.sma::plugin_cfg (line 864)
Quote:
Originally Posted by GordonFreeman (RU) View Post
AMXX 1.8.2 hg26 or higher.
That meant I had to go to 1.8.3 a couple years ago because hg26 was NOT around at that point in time when I checked. This isn't a true 1.8.2 plugin as we know it from the main download page or else it wouldn't fail on that native. When on 1.9 and 1.10 it gets past that point. I bypassed the removal of guns on the ground so it would load further with the last update on the 2020 sma post I made. All I noticed besides nobody to test with was the bottomless clip was not there. That's an easy one. I looked at that double spacing. Somebody demanded it for 1 and for 2 the resolution of the monitor and 3 to distinguish the code.

Quote:
Originally Posted by HamletEagle View Post
Also use spaces in functions.
__________________

Last edited by DJEarthQuake; 05-29-2020 at 13:29.
DJEarthQuake is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-29-2020 , 23:34   Re: Half-Life GunGame
Reply With Quote #129

Quote:
Originally Posted by DJEarthQuake View Post
Show me the comma please.
https://forums.alliedmods.net/showpo...&postcount=121
__________________
fysiks is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-30-2020 , 06:01   Re: Half-Life GunGame
Reply With Quote #130

Thank you.

For those who find original plugin does not work for whatever reason I am sharing what I use. The attachment is for Amxx 1.9+. The offset is referring to DOD if you run out of ammo. It's not supposed to do that in Arms Races. This was tested on Debian 10.

Quote:
m_rgAmmo = 281 ; Correct bottomless clip offset.
The uncommon nuisance bug of getting stuck to the hull of a wall at after warmup when using hook was noticed years ago and accounted for in all my versions.


Fixes mapchooser from being exploited
__________________

Last edited by DJEarthQuake; 08-08-2021 at 19:03. Reason: Forked the 2016 copy
DJEarthQuake is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode