PDA

View Full Version : I Spy (by JGHG) is not compiling


Martel
03-19-2004, 05:19
Well, I have a problem compiling I Spy by JGHG. But first things first - by reading the documentation I have found out that AMXX has vexd and xtrafun merged into it's engine and fun module. But there is no single mention of the jghg module. Is it included or not?

And now for the real problem. When I leave the headers of vexd, xtrafun and jghg in the source of I Spy i get:

martel@afs:~/hl2/cstrike/addons/amxx/scripting$ ./sc i_spy.sma
Small compiler 2.1.0 Copyright (c) 1997-2002, ITB CompuPhase

/home/martel/hl2/cstrike/addons/amxx/scripting/./include/xtrafun.inc(99) : error 017: undefined symbol "find_entity_by_target"
/home/martel/hl2/cstrike/addons/amxx/scripting/./include/xtrafun.inc(102) : error 035: argument type mismatch (argument 2)
/home/martel/hl2/cstrike/addons/amxx/scripting/./include/jghg.inc(24) : error 021: symbol already defined: "find_ent_by_owner"
i_spy.sma(289) : error 017: undefined symbol "CS_SetModel"
i_spy.sma(291) : error 017: undefined symbol "CS_SetModel"
i_spy.sma(478) : error 017: undefined symbol "CS_ClearModel"
i_spy.sma(576) : error 017: undefined symbol "CS_ClearModel"

7 Errors.

Seems like xtrafun is missing some of it's functions and what's moreover it seems like jghg is also not fully implemented (find_ent_by_owner is already defined but CS_SetModel set is not). What should I do to make it work?

Thanks in advance

Johnny got his gun
03-19-2004, 05:33
100% of jghg module is not in AMXX (engine), only some of it.
Also jghg2 module changed interface to plugins so I Spy needs to be rewritten...

Fant
03-19-2004, 05:43
That about other plugins?

Martel
03-19-2004, 06:54
Thanks for the reply, Johhny.

But let me repeat the question. Is there any possibility I could make it work on my own? For example by modifying includes and function declarations or function executions in I spy? Or is it too complicated as some functions changed entirely? Form what you told me I assume that AMXX plus jghg2 shoud give me enough functions to do the job.

If it is in fact very complicated task could you please state if you are going to do it? And how much time it will possibly take?

Johnny got his gun
03-19-2004, 10:12
Released in plugins.

Martel
03-21-2004, 04:05
Well, thanks Johnny, but it's still not working for me. Maybe I'm doing something wrong. It's my first try with AMXX (but again it doesn't look very different than AMX).

martel@afs:~/hl2/cstrike/addons/amxx/scripting$ ./sc ispy.sma
Small compiler 2.1.0 Copyright (c) 1997-2002, ITB CompuPhase

/home/martel/hl2/cstrike/addons/amxx/scripting/./include/xtrafun.inc(99) : error 017: undefined symbol "find_entity_by_target"
/home/martel/hl2/cstrike/addons/amxx/scripting/./include/xtrafun.inc(102) : error 035: argument type mismatch (argument 2)
ispy.sma(278) : warning 213: tag mismatch
ispy.sma(278) : warning 213: tag mismatch
ispy.sma(278) : warning 202: number of arguments does not match definition
ispy.sma(278) : warning 202: number of arguments does not match definition
ispy.sma(278) : warning 202: number of arguments does not match definition
ispy.sma(301) : error 017: undefined symbol "CS_SetModel"
ispy.sma(303) : error 017: undefined symbol "CS_SetModel"
ispy.sma(489) : error 017: undefined symbol "CS_ClearModel"
ispy.sma(587) : error 017: undefined symbol "CS_ClearModel"

Is it possible that I have some old xtrafun includes? I think I didn't overwrite them with amxes but I'll double check that. Nope, I didn't.

Does it compile ok for you, Johnny?

BigBaller
03-21-2004, 04:20
Martel

http://forums.alliedmods.net/showthread.php?t=

that is the posted plugin by JGHG

Maybe try that, who knows, I cant really tell you where your going wrong but I suggest trying that.

Johnny got his gun
03-21-2004, 06:26
You need to update the include file, particularily the xtrafun.inc since 0.15 from the repository. http://www.tcwonline.org/cgi-bin/viewcvs.cgi/amxmodx/plugins/include/#dirlist

Martel
03-22-2004, 03:16
I have updated all of the includes by now (to the CVS versions, of course). The problem with xtrafun vanished but unfortunately the one with CS_SetModel prevailed. Take a look:

martel@afs:~/hl2/cstrike/addons/amxx/scripting$ ./sc ispy.sma
Small compiler 2.1.0 Copyright (c) 1997-2002, ITB CompuPhase

ispy.sma(278) : warning 213: tag mismatch
ispy.sma(278) : warning 213: tag mismatch
ispy.sma(278) : warning 202: number of arguments does not match definition
ispy.sma(278) : warning 202: number of arguments does not match definition
ispy.sma(278) : warning 202: number of arguments does not match definition
ispy.sma(301) : error 017: undefined symbol "CS_SetModel"
ispy.sma(303) : error 017: undefined symbol "CS_SetModel"
ispy.sma(489) : error 017: undefined symbol "CS_ClearModel"
ispy.sma(587) : error 017: undefined symbol "CS_ClearModel"


What does the mismatched tag mean? The line 278 is as follows:

playersInVicinity = find_ent_sphere(0, spawnOrigin, vicinity, "player", entList, 0)

Maybe I have an old version of jghg2? Is there a most recent version anywhere in the CVS?

PS. BigBaller, I know, I'm already using the updated plugin.

Johnny got his gun
03-22-2004, 03:33
Maybe - you should get latest version from Modules forum. It also looks like you have an old version of I Spy.

Fant
03-22-2004, 03:40
That version of module is latest??

Johnny got his gun
03-22-2004, 04:48
Yes, I really meant that.

Martel
03-23-2004, 05:37
I have jghg2.inc from the rar from the modules forum now (but I have already tested with the zips version also). Moreover I have downloaded the ispy from the plugins forum (http://www.amxmod.org/forums/download.php?id=110) and... no candy, the problem persists (it's exactly the same error).

Johnny, could you check in which file you have the definition of the CS_SetModel, please?

Maybe you have a working version on your HD and you have posted some older stuff on the forum? Could you please check it yourself?

Thanks in advance.

Johnny got his gun
03-23-2004, 06:16
There are no calls to CS_SetModel in ispy.sma.

I will upload an updated version that only includes amxx includes (and jghg2)

Martel
03-23-2004, 06:34
Are you going to post it in the plugins forum or here?

And for the "There are no calls to CS_SetModel in ispy.sma":

I Spy from the old AMX version (model indexes tweaked by me).
The output format is - filename:line number: line in file

martel@afs:~/hl2/cstrike/addons/amxx/scripting$ grep -nir CS_SetModel *
i_spy.sma:289: CS_SetModel(spy,CTModels[1]) // T change to CT
i_spy.sma:291: CS_SetModel(spy,TModels[2]) // T change to CT

And NEW I Spy from the AMXX forum:

ispy.sma:301: CS_SetModel(spy,CTModels[random_num(0,3)]) // T change to CT
ispy.sma:303: CS_SetModel(spy,TModels[random_num(0,3)]) // CT change to T

Martel
03-23-2004, 06:45
The new version (0.7.1) compiles correctly. Thanks for your time, Johnny.

Martel
03-23-2004, 07:10
Ok, now as all of the plugins are working ok I'm ready to test AMXX on my server (afs.autocom.pl:27015) . It's a custom maps server and I Spy runnig with the chance of spawning a spy set at 2%.