Post subject: Sonic Cam Hack Compiling Issues
Joined: 8/19/2008
Posts: 8
Location: UK
Edit: I have the Gens10 source, and I can get it to compile fine into Gens10 and use it as normal. However, as soon as I uncomment these two lines:
//#define SONICCAMHACK
//#define SK
I keep getting the following errors:
Gens.cpp
.\Gens.cpp(1304) : error C2065: 'CamX' : undeclared identifier
.\Gens.cpp(1304) : error C2065: 'CheatRead' : undeclared identifier
.\Gens.cpp(1304) : error C2062: type 'short' unexpected
.\Gens.cpp(1305) : error C2065: 'CamY' : undeclared identifier
.\Gens.cpp(1305) : error C2065: 'CheatRead' : undeclared identifier
.\Gens.cpp(1305) : error C2062: type 'short' unexpected
.\Gens.cpp(1306) : error C3861: 'DrawBoxes': identifier not found
Any thoughts on this? ----------------------------------------------------------------------------------- Does anyone have a link to the camhack version of Gens that Nitsuja used in his S3K runs? I've been looking for it, but sadly I only get a broken link, and I'd love to see the run with the camhack. Many thanks in advanceif anyone can help me.
Joined: 8/19/2008
Posts: 8
Location: UK
Just noticed updating the topic didn't bump it. Go figure =/
Post subject: Re: Sonic Cam Hack Compiling Issues
upthorn
He/Him
Emulator Coder, Active player (388)
Joined: 3/24/2006
Posts: 1802
TyrantWave wrote:
Edit: I have the Gens10 source, and I can get it to compile fine into Gens10 and use it as normal. However, as soon as I uncomment these two lines:
//#define SONICCAMHACK
//#define SK
Which file are you uncommenting those lines in?
How fleeting are all human passions compared with the massive continuity of ducks.
Joined: 8/19/2008
Posts: 8
Location: UK
Gens.cpp G_ddraw.cpp ...and any other instances of either of the two. Gens.cpp is the one throwing the errors.
arflech
He/Him
Joined: 5/3/2008
Posts: 1120
Are there lines that specify what CamX, DrawBoxes, etc. are? You probably need to uncomment those too...
i imgur com/QiCaaH8 png
Emulator Coder, Skilled player (1300)
Joined: 12/21/2004
Posts: 2687
You have to define SONICCAMHACK and SK in hackdefs.h, not in any .cpp files. Also, there is some extra stuff that currently doesn't have its own define, so if you don't want to see hitboxes and tile solidity displayed everywhere, put a return at the start of DrawBoxes() and DisplaySolid() in SonicHackSuite.cpp. EDIT: actually, as of the latest SVN revision there are defines for disabling those in hackdefs.h too, but you probably won't be getting that code yet.
Joined: 8/19/2008
Posts: 8
Location: UK
Ah, that would explain things! I commented the correct lines now (And have 3 new versions of Gens, for SK/S2/S1 camhacks respectively). I checked the SVN revision, but it did not have the updated version of hackdefs.h :( So I just put returns at the start of the DrawBoxes() and DisplaySolid() functions. Thanks for all the help :D
Former player
Joined: 7/6/2012
Posts: 207
Location: Réunion (FR)
i'm a beginner, please, where have i to put hackdefs.h please?
~ [I]feeuzz
Site Admin, Skilled player (1236)
Joined: 4/17/2010
Posts: 11267
Location: RU
It is just a source code file. You don't need to put it anywhere. If you can compile the source, you just edit the file. http://code.google.com/p/gens-rerecording/source/browse/#svn%2Ftrunk%2F%20gens-rerecording%2FGens
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Former player
Joined: 7/6/2012
Posts: 207
Location: Réunion (FR)
feos wrote:
It is just a source code file. You don't need to put it anywhere. If you can compile the source, you just edit the file. http://code.google.com/p/gens-rerecording/source/browse/#svn%2Ftrunk%2F%20gens-rerecording%2FGens
yes thanks, but if i want to edit it, where can i find it?
~ [I]feeuzz
Noxxa
They/Them
Moderator, Expert player (4138)
Joined: 8/14/2009
Posts: 4083
Location: The Netherlands
It's right there in the source.
http://www.youtube.com/Noxxa <dwangoAC> This is a TAS (...). Not suitable for all audiences. May cause undesirable side-effects. May contain emulator abuse. Emulator may be abusive. This product contains glitches known to the state of California to cause egg defects. <Masterjun> I'm just a guy arranging bits in a sequence which could potentially amuse other people looking at these bits <adelikat> In Oregon Trail, I sacrificed my own family to save time. In Star trek, I killed helpless comrades in escape pods to save time. Here, I kill my allies to save time. I think I need help.
Former player
Joined: 7/6/2012
Posts: 207
Location: Réunion (FR)
ok, this is why... i've got only that: http://code.google.com/p/gens-rerecording/downloads/detail?name=Gens11b.zip and i'm a linux user, i use wine to play. I haven't this folder (you show me).
~ [I]feeuzz
Site Admin, Skilled player (1236)
Joined: 4/17/2010
Posts: 11267
Location: RU
Ever cared to follow the link I posted?
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Former player
Joined: 7/6/2012
Posts: 207
Location: Réunion (FR)
feos wrote:
Ever cared to follow the link I posted?
yes i see, a list of files... but what they mean?
~ [I]feeuzz
Site Admin, Skilled player (1236)
Joined: 4/17/2010
Posts: 11267
Location: RU
They mean that it's not time for you to try CamHacks.
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Noxxa
They/Them
Moderator, Expert player (4138)
Joined: 8/14/2009
Posts: 4083
Location: The Netherlands
Do you know what source code is and how to compile it into an executable?
http://www.youtube.com/Noxxa <dwangoAC> This is a TAS (...). Not suitable for all audiences. May cause undesirable side-effects. May contain emulator abuse. Emulator may be abusive. This product contains glitches known to the state of California to cause egg defects. <Masterjun> I'm just a guy arranging bits in a sequence which could potentially amuse other people looking at these bits <adelikat> In Oregon Trail, I sacrificed my own family to save time. In Star trek, I killed helpless comrades in escape pods to save time. Here, I kill my allies to save time. I think I need help.
Former player
Joined: 7/6/2012
Posts: 207
Location: Réunion (FR)
feos wrote:
They mean that it's not time for you to try CamHacks.
okay "Do you know what source code is and how to compile it into an executable?": No. thanks.
~ [I]feeuzz
WST
She/Her
Active player (442)
Joined: 10/6/2011
Posts: 1690
Location: RU · ID · AM
Can I use MinGW to compile gens? Just wondering, no Windows machine with me now
S3&A [Amy amy%] improvement (with Evil_3D & kaan55) — currently in SPZ2 my TAS channel · If I ever come into your dream, I’ll be riding an eggship :)
Player (72)
Joined: 9/10/2021
Posts: 15
Location: Peru
Hello! I want you to help me with this. When I am playing, recording or encoding a TAS, in CamHack mode this text appears above the character. I don't know how to remove it or how encoding will be done with CamHack without this text. Can anyone help me or tell me how to do it? Forget it, I already fixed it (Thanks rodonic01)