AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   I Spy (by JGHG) is not compiling (https://forums.alliedmods.net/showthread.php?t=340)

Martel 03-19-2004 05:19

I Spy (by JGHG) is not compiling
 
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:

Code:

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).

Code:

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/vie...clude/#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:

Code:

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:

Code:

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.


All times are GMT -4. The time now is 18:15.

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