Coding

 Reply to this postStart new topic

Freakiest Bug Ever!

Deji
post Jun 7 2009, 01:28 AM
Post #1


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



I was editing my 'Deji's Fun Mod' and I compiled it to test the new feature of .cs compatibillity. I opened SA and everything worked fine until I tried to Press 9 to switch back to selection A from selection C...

When I did that, a new game was started... Kinda... The first cutscene loaded, I spawned in the starting alleyway and the mission where you go back to Grove had started. But it wasn't quite a new game... According to the stats I had completed it at 100% and finished all the missions... The radar showed gang areas showing and all the map icons... But the safehouses were for sale still... As well as being owned... So basically I could buy a house I already owned!

I walked around a bit amazed by this. I went to LV finding out I still got 4 stars for passing the border. In most of the interiors that contain characters... There were 2! 2 of each character.

I then figured that I was running two copies of San Andreas AT THE SAME TIME! One was my 100% savegame, one was a completely new game. This was obviously why there were 2 characters in each interior, houses owned/unowned ect.

Then I opened CamHack, restarted my game and pressed the bugged '9' key. When the new game started I went into freelook mode and drove the camera to the place where I was when the new game started. As I suspected, at exactly the same height that my new game player was at, was my old character, stuck at that height falling about a metre then spawning back up and it didn't stop doing this... Ever.

Unfortunately, I found that I wasn't in control of the old game. If I moved my character, the old one would'nt move accordingly. I quit trying to find the cause after a while. According to where in the script it crashed, the jump line of coding was an error. But thats kinda impossible... So I couldn't fix it.


Turns out, after doing this on a new mod I'm working on, that if there are certain opcodes used or something, that: name_thread MUST be in the script or else it will start a new game. Dunno why though, crash = understandable. New Double Game = WTF!?

So I don't need help with this anymore, it's working fine now, but I thought I'd let you know about the weirdest bug I have ever encountered on San Andreas in my life >.<

So... Anyone want a '2 games at once' mod? lol

P.S I recorded alot of stuff so I will upload it to YT some time and you can seee how weird it is tongue.gif

EDIT:


--------------------
Go to the top of the page
 
+Quote Post
Adler
post Aug 13 2009, 09:38 PM
Post #2


Devil's Advocate

Group Icon

Posts: 413
From: CA US
Joined: 26-July 09



So that's what you mean by two games simultaneously. banana.gif

Maybe we can exploit this for some purpose? devil.gif


--------------------
Go to the top of the page
 
+Quote Post
Spider-Vice
post Aug 14 2009, 01:11 PM
Post #3


In motus...

Group Icon

Posts: 361
From: Portugal
Joined: 28-May 09



SCM confusion. You must have a buggy script that allows the game to trigger your mod's features and the storyline at the same time, that makes it. I have heard of this bug before and it was fixed by correcting a buggy script.
Go to the top of the page
 
+Quote Post
Deji
post Aug 15 2009, 12:44 AM
Post #4


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



For me, I think it was the lack of naming the thread in a CLEO Script, and then jumping to something in the thread. Because it isn't named I guess it couldn't keep track of where it was jumping and managed to jump to the start of the game.


--------------------
Go to the top of the page
 
+Quote Post
Spider-Vice
post Aug 16 2009, 12:55 PM
Post #5


In motus...

Group Icon

Posts: 361
From: Portugal
Joined: 28-May 09



That's SCM Confusion basically.
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: