Hard Light Productions Forums

Hosted Projects - Standalone => The Babylon Project => Topic started by: terran_emperor on May 22, 2008, 11:39:54 pm

Title: Cheat Crash
Post by: terran_emperor on May 22, 2008, 11:39:54 pm
Entering the FS2 cheat code causes the came to crash. Is this a bug or diliberate?
Title: Re: Cheat Crash
Post by: CaptJosh on May 22, 2008, 11:47:23 pm
That's going to be FS2O engine level, not mod related.
Title: Re: Cheat Crash
Post by: IPAndrews on May 23, 2008, 01:22:53 am
Thanks for the head's up. Put the problem in Mantis and maybe it will be fixed in the 3.6.10 version of the game engine. Go to the source code forum to and check the appropriate thread.
Title: Re: Cheat Crash
Post by: terran_emperor on May 23, 2008, 02:03:07 am
I have Both FSO (for Freespace Universe) and TBP installed on my computer.
I posted here because its only with TBP. Cheats work fine on the FSO.

and they worked fine on the previous release candidate for TBP3.4_b. It this Final RC that cheats dont work.

Basically when i get to the final key in the code it comes up with some error saying something about the Rockeye not being found, then it crashes 
Title: Re: Cheat Crash
Post by: Wanderer on May 23, 2008, 02:15:00 am
Exact error messages would help a great deal in figuring out what is wrong... Also does it happen with any specific cheats? Or just in general when they are used?
Title: Re: Cheat Crash
Post by: terran_emperor on May 23, 2008, 01:37:31 pm
When i type in "www.freespace2.com" as soon a i get to the "m" at the end it comes up with this message:

Error: Can't open model file <rockeye.pof>
File:D:\C++\Freespace\fs2_open 3.6.9 - BtRL\code\Model\ModelRead.cpp
Line: 1902
[This filename points to the location of a file on the computer that built this executable]

Call stack:
------------------------------------------------------------------
------------------------------------------------------------------
 
Title: Re: Cheat Crash
Post by: IPAndrews on May 23, 2008, 03:21:59 pm
Unsurprising since we have no rockeye. That said, the game engine should never bomb to desktop like that. Kara probably hates me and that particular mantra :D.
Title: Re: Cheat Crash
Post by: karajorma on May 23, 2008, 05:17:02 pm
Well in this case that sort of error is exactly the kind it should display. What it should never ever do is crash only displaying the standard Windows error when being used by a non-developer.

In this case it's obviously a bug. Something hardwired. It's already on my list of things to look at and I've got a pretty good idea where to start.
Title: Re: Cheat Crash
Post by: Darklord42 on May 23, 2008, 05:26:26 pm
funny how bugs always crop up right after you release :sigh:
Title: Re: Cheat Crash
Post by: terran_emperor on May 23, 2008, 06:43:05 pm
Yep...The reason i asked if it was deliberate is because it could have been an anti-cheat method. I'll have to check to see if it occurs when i press only "m"...
Title: Re: Cheat Crash
Post by: Darklord42 on May 23, 2008, 10:17:16 pm
well it is now :lol:
Title: Re: Cheat Crash
Post by: Backslash on May 23, 2008, 11:16:57 pm
We ran into this in WCSaga too.  I'm pretty sure all we did was scour our tables and remove any mentions of Rockeye.

Afaik the reason it happens is when you cheat it has to load ALL the weapons.
Title: Re: Cheat Crash
Post by: karajorma on May 24, 2008, 01:28:51 am
Just grepped the tables. No mention of the word rockeye. There is a place in the code where the game will bash in the rockeye if no missiles are found. I suspect that is what is happening here.
Title: Re: Cheat Crash
Post by: IPAndrews on May 24, 2008, 02:08:03 am
There is a place in the code where the game will bash in the rockeye if no missiles are found.

Doen't sound like a very mod-safe piece of code. Perfectly logical piece of code for the original FS2 of course.
Title: Re: Cheat Crash
Post by: IPAndrews on May 24, 2008, 02:11:06 am
funny how bugs always crop up right after you release :sigh:

Every game has bugs. This one is no different. Due to the consistent forward progress of time they will always appear after we release. Thankfully this bug is so minor as to be negligible.
Title: Re: Cheat Crash
Post by: karajorma on May 24, 2008, 02:19:38 am
There is a place in the code where the game will bash in the rockeye if no missiles are found.

Doen't sound like a very mod-safe piece of code. Perfectly logical piece of code for the original FS2 of course.

Replacing it with code that bashes in the first missile should have exactly the same effect but I think I'll take my time and check whether bashing in a missile at all is advisable (one day we may have mods that don't have any).
Title: Re: Cheat Crash
Post by: IPAndrews on May 24, 2008, 02:28:17 am
(one day we may have mods that don't have any).

Kara grabs a can opener and reaches into the cupboard for the one marked "worms" :).
Title: Re: Cheat Crash
Post by: karajorma on May 24, 2008, 07:05:53 am
I didn't say that I'd be the one to code that in. :p
Title: Re: Cheat Crash
Post by: karajorma on May 24, 2008, 12:42:50 pm
Okay, I checked. I can't reproduce this one and the cause isn't the one I thought it was. I'll need to know which mission you triggered this in and which ship you were flying.
Title: Re: Cheat Crash
Post by: terran_emperor on May 24, 2008, 05:17:23 pm
Any mission with any ship. as soon as i hit "m" at the end of the "www.freespace2.com" i get that error. Then it crashes

Maybe its just me...
Title: Re: Cheat Crash
Post by: haloboy100 on May 24, 2008, 06:01:12 pm
"www.freespace2.com"
Don't click that link :sigh:
Title: Re: Cheat Crash
Post by: karajorma on May 25, 2008, 02:04:05 am
Are you sure you don't have any tables that you shouldn't have?

Cause I can't see where it would be getting the idea to look for rockeye.pof from. I can see why it might look for a weapon with that name in certain circumstances but it shouldn't be looking for a pof with that name
Title: Re: Cheat Crash
Post by: Carnage on June 04, 2008, 07:46:05 am
!!!!!!?????? Where can I find Cheats for TBP or FS 2 ?!?!?!?!?
Ive really got stucked in one mission.....destroy 3 shadow fighers allone....impossible
Title: Re: Cheat Crash
Post by: terran_emperor on June 04, 2008, 11:23:15 am
Try putting the difficult down... or keep moving, using you're afterburners near contantly
Title: Re: Cheat Crash
Post by: darkmaster on June 04, 2008, 11:57:14 am
Those bad guys disabled cheats to make sure that everyone must put his hand on FRED2  :D.
Title: Re: Cheat Crash
Post by: Carnage on June 08, 2008, 09:42:20 am
Maybe somebody can create a trainer, do manage some really hard missions

Im a veteran in Flighsims since 1995, from WW2 Sims like Il2, to Spacesims of all kind

But sometimes I had really problems to get a mission
Title: Re: Cheat Crash
Post by: haloboy100 on June 08, 2008, 01:20:37 pm
Who needs trainers when you have FRED?
Title: Re: Cheat Crash
Post by: Carnage on June 10, 2008, 02:06:12 pm
Have tried it on very easy and finished 5 campaigns in 2 days... :D