Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 4th Jul 2010 05:02 Edited at: 4th Jul 2010 05:04
Hey guys, I havent been on here in forever. Partially because my partner really wanted to do something different and I had a bug in Desolation that seemed totally random so progress on it stopped entirely. But I opened the source the other day and tried to work on it. To figure out this random bug, Ive been trying to write logs, but those are always random too. I know this seems like a lot, which it is, but Im gonna post all my code here, and hopefully someone can spot this. Ive spent so many hours on just trying to fix this. Ive commented it where you can see the :"pages" The crash happens on the join lobby page either when you clcik on the accept button or you hit enter after entering your name.

The GUI is BBB GUI.


CLIENT
DesolationGame.dba


module_Functions.dba


module_GUI.dba


module_LoadGameMedia.dba


SERVER
DesolationServer.dba


If anyone can please please please attempt to help, it would be greatly appreciated. These random crashes stopped progress on this.

Dev team portal Email me to join the dev team!

Sepnon
14
Years of Service
User Offline
Joined: 7th Feb 2010
Location: Brazil
Posted: 4th Jul 2010 05:08
i cant compile your code right now, but silent crashes usually let a txt log on the exe directory: "crashOn___.txt"
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 4th Jul 2010 05:10 Edited at: 4th Jul 2010 05:11
Yeah I looked at that and attempted to fix the error on that line, but I still get crashes and havent seen a new text file =/ And I havent uploaded the media for this, but I guess I could zip it up and upload it if needed.

Dev team portal Email me to join the dev team!

GIDustin
15
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 4th Jul 2010 05:17 Edited at: 4th Jul 2010 05:22
Ohhhh, all that time copying that into files and I dont have BBB gui or your media... The GUI I can go find, but not the media


Also, at what point does it usually crash? Do I need to compile this server app too?

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 4th Jul 2010 05:20 Edited at: 4th Jul 2010 05:24
Alright lol, Im uploading the zip at the moment. Ill edit this post when its done. It crashes during sometime in the join lobby page. Either clicking on the accept button or After hitting enter to input the name. So yeah, the server needs to be compiled and run at the same time.

Dev team portal Email me to join the dev team!

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 4th Jul 2010 05:33
Alright guys, heres the folder.

http://www.mediafire.com/file/yyygtxmqgdu/MEDIA.zip

Dev team portal Email me to join the dev team!

GIDustin
15
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 4th Jul 2010 05:33
Another problem I see in the very near future is that your game connects to a SQL server on "localhost", which I dont have....

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 4th Jul 2010 05:34
Well you could comment that part out. All that stuff about connecting and displaying it.

Dev team portal Email me to join the dev team!

GIDustin
15
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 4th Jul 2010 05:39 Edited at: 4th Jul 2010 05:47
The GUI seems rather messed up at times, but I created a lobby and had a thought provoking conversation with myself. Then started a game with only me, went to a blue screen with a white grid, 2 tanks and a box on it.

Hasn't crashed yet though... /shrug



Attachments

Login to view attachments
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 4th Jul 2010 05:42
Hmmm. Did you start the server first independently then run the client and join through the join lobby page?

Dev team portal Email me to join the dev team!

GIDustin
15
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 4th Jul 2010 05:46 Edited at: 4th Jul 2010 05:48
I didnt because it wouldnt let me, but then I saw that the server has a default password, so I did that. Changed the screenshot above to reflect this.

My guess is that your installation of DBPro isn't 100% working.

Also, you could gain alot of FPS by using d3d_func instead of the standard DBPro "text" commands.

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 4th Jul 2010 05:48
Hmmm. Rofl, well I dunno whats up with the GUI. Im probably gonna switch to something else eventually. But youre not crashing at all?

Dev team portal Email me to join the dev team!

GIDustin
15
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 4th Jul 2010 05:49 Edited at: 4th Jul 2010 05:54
Nope, I got the box chasing the tanks around the screen, which is cheating since one tank goes really fast. Not sure what else you have programmed yet but no crashes so far.

Edit: The image in your signature links to your page, but the link above it is broke. FYI

Edit2: One thing I think I noticed is that your SQL connection stuff is in your main menu loop, effectively trying to connect every single loop. Perhaps that is eating up your memory and crashing your system, whereas I am not connecting at all and it works fine...

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 4th Jul 2010 05:54
Hmmm ok. I know about the links xD Try running two instances of the client and connecting. I think the error is on the second client.

Dev team portal Email me to join the dev team!

GIDustin
15
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 4th Jul 2010 06:03 Edited at: 4th Jul 2010 06:09
Still works. I really think the problem is in your SQL since I have those lines all commented. You appear to call "MySQL_SetConnection" and "MySQL_RunStatement" with each loop. Is this intentional?



Edit: I would put the following in SetupMainMenu()



Then, call iRows = MySQL_RunStatement("SELECT * FROM desolationtable") ONCE and save the results in an array, and use the array later on. You can also put something in there to refresh the data (if it changes frequently?). Right now you are creating a MySQL connection to your server and running a "SELECT" command on every single loop, which cannot be good.

Attachments

Login to view attachments
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 4th Jul 2010 06:10
Well that definately was a good idea, but its still happening:

http://i48.tinypic.com/kf019w.jpg

Dev team portal Email me to join the dev team!

GIDustin
15
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 4th Jul 2010 06:14
How far did it get? What is the last line in your log file thing?

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 4th Jul 2010 06:16 Edited at: 4th Jul 2010 06:21
My log file:


Clicked on accept button
Got input - name
Connected to server
Deleted textboxes
Player recieved from server
Joining from lobby
Sent info to get player name from server
isSetUpPassLobby = 0
loopControlVar = 1
clickStartGame = 1
Setup_CreateJoinLobbyPage1 = 0

Then sometimes like the next time I ran it it only got this far:


Clicked on accept button
Got input - name
Connected to server
Deleted textboxes

Dev team portal Email me to join the dev team!

GIDustin
15
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 4th Jul 2010 06:21 Edited at: 4th Jul 2010 06:22
Same as mine.

OK, well let's narrow it down more. Attached is the EXE that my computer compiled. If it fails to run on your computer, then it is something to do with your computer. If it runs properly, then it is something to do with your EXE, meaning something is wrong with your compiler.

Edit: Lemme know if you cant open RAR files, I can re-upload as a zip

Attachments

Login to view attachments
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 4th Jul 2010 06:24 Edited at: 4th Jul 2010 06:24
Yup it still crashes. Same place too. Im thinkin vista issue here.

Dev team portal Email me to join the dev team!

GIDustin
15
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 4th Jul 2010 06:30
OK, I am going to quickly make a debugging library, it might take a few minutes but I needed to make it eventually anyway.

TTYL

GIDustin
15
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 4th Jul 2010 06:56 Edited at: 4th Jul 2010 07:06
I added a stack library. Every time your game enters a function, that function name is logged. Every time your game leaves a function, it's removed from the log. Every time the stack changes, it copies the stack to the clipboard.

So, run the game, let it crash, and then paste your clipboard somewhere. That will tell you the function where it crashed. Test several more times to see if it is the same function. Then we can start debugging that one function a bit further.

Edit: new version, shows the function left last

Attachments

Login to view attachments
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 4th Jul 2010 07:10
Well with that one I get:

No Stack, Last Left JoinLobby

Dev team portal Email me to join the dev team!

GIDustin
15
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 4th Jul 2010 07:38
Not entirely sure what to tell you. It is crashing somewhere in your main loop, and your main loop is really big.

What I dont understand is why it crashes for you and not me. It makes me think it almost has to be something not with the game, but with your computer setup. Most likely with the DLLs.

It would be much easier to debug if I too got the problem. I was running in Windows XP, I rebooted into windows 7 (I noticed you are either using 7 or Vista), but it ran fine under Windows 7 over here as well.

Have you tried updating your Multisync, BBB Gui, and DBPro to the latest versions?

I would like to narrow this down to the exact line that you keep crashing on, which you could do just by adding those log commands throughout your main loop, but something tells me that it won't matter since it works on my computer anyway. /shrug

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 4th Jul 2010 07:46
Hmm this is just maddening. I run Vista. All my stuff is up to date. Imma test it on my XP machine in a minute.

Dev team portal Email me to join the dev team!

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 4th Jul 2010 08:08 Edited at: 4th Jul 2010 08:09
Welp what do ya know. It works on my XP machine and its old >.>. Gotta be some vista thing. I wish I knew though what it was. Should just upgrade to windows 7 though. Thanks GIDustin.

Dev team portal Email me to join the dev team!

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 5th Jul 2010 07:59 Edited at: 5th Jul 2010 08:50
I dont know what this is lol. UAC is off. Its been off. Everything is up to date. DirectX, plugins, DB, everything.

Ive added more places for it to write logs, but its different everytime. I even went to think it was Data Execution Prevention, but that usually shows up in the system tray and this is actually crashing. Anyone else have any input on this? Besides switching operating systems Maybe if someone with vista could try and compile this and reproduce it.

I mean, Im getting a laptop here with windows 7 soon, so Ill probably switch work from here to there, but I still want this not to crash on vista.

Dev team portal Email me to join the dev team!

GIDustin
15
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 5th Jul 2010 08:56
Quote: "but I still want this not to crash on vista."


As do we all.

I am still thinking this is a DLL issue as most other random crashes with DBPro's own commands have already been looked into.

The one thing I notice is that you have a combo box on the screen after you enter your name, where you pick a team or something? Perhaps comment out that and see what happens. I still really think it could be the BBB gui plugin, especially since their thread mentions "silent crashes" when the program closes...

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 5th Jul 2010 17:23
Yeah, Ill start commenting out the GUI sections one by one today sometime. Im gonna have to find an alternative eventually to work in fullscreen exclusive mode. I tried writing a textbox function, but that didnt fully work out. ANd buttons are'nt that hard. But yeah, Ill start commenting out certain objects, and if it is the GUI, maybe Ill just work on mine lol and implement that.

Dev team portal Email me to join the dev team!

Sepnon
14
Years of Service
User Offline
Joined: 7th Feb 2010
Location: Brazil
Posted: 5th Jul 2010 18:04
i tryed to run here (vista), it says USkin.dll were not found
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 5th Jul 2010 18:13
In the BBB GUI plugin there is a dll called USkin.dll that needs to be in the project folder.

Dev team portal Email me to join the dev team!

Sepnon
14
Years of Service
User Offline
Joined: 7th Feb 2010
Location: Brazil
Posted: 5th Jul 2010 20:08
then why didnt you add it to the download? -.-
ok, now i get an "could not load music at line 1534"
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 5th Jul 2010 20:15
Really? Line 1534 of the project is in the BBBGUI_Constants file. And has nothing to do with music. And every piece of media I included with the download. Except the plugin.

Dev team portal Email me to join the dev team!

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 6th Jul 2010 06:41
If anyone else is looking at this:



Those are the functions for the join lobby page. Now is it possible after the whole thing where it connects( net connect() ), that it continues to run through the JoinLobby function? Because I dont switch to the actual lobby page until some info is sent back and forth between the servers and clients. That might be so, because the log gets only to connected to server. So I think it hangs after that because the sprites arent there anymore. So any suggestions or thoughts?

Dev team portal Email me to join the dev team!

GIDustin
15
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 6th Jul 2010 07:14
I don't quite get what you mean by that... Honestly though your coding style isn't what I am used to.

Quote: "Line 1534 of the project is in the BBBGUI_Constants file"


The line number depends on what order the files were added to the project. You never included .dba and .dbpro files in your zip, so we had to make our own, which altered the order of the files. That is why his line numbers don't match up to your own.

Good luck with your project. It somewhat inspired me to get back to work on mine.

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 6th Jul 2010 07:28
Lol nevermind. Thanks dude. If anyone else has input please share. Imma just gonna continue to debug the hell out of it anyway.

Dev team portal Email me to join the dev team!

FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 9th Jul 2010 04:37
Ive updated everything possible on this machine and I still crash. Heres all my stuff including project files and media. It still only crashes on vista, even on another machine i tested. If anyone would try and see if it crashes on vista, I would greatly appreciate it.

http://www.mediafire.com/?vyjnm2jnyth

Note on line 831 or module_Functions, you have to change the Execute File command to wherever you extracted the files to.

I dont mean to sound desperate, but I kind of am. xD This was mean t to be a multiple person project, but my partner never decided to learn the language. Im also considering going open source on this or something of the sort like finding more help lol. But, Im the only one working on this right now. So right now I could use some help

Dev team portal Email me to join the dev team!

Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 9th Jul 2010 13:13 Edited at: 9th Jul 2010 13:36
I'm downloading it now and will test it for you as soon as I can.

I know how infuriating this sort of thing can be.

Edit I should have read the whole thread before testing this.

What exactly am I supposed to do to run this? Which executable should I run - and what do I enter at the various screens? I tried running DesolationGame.exe and entered something random at the Create Lobby screen since that appeared to be the first thing I was supposed to do (I couldn't find any instructions relating to valid server names, etc) and the program just seemed to hang. No crash as far as I could see. I had to use Task Manager to cancel it - for some reason the games minimize button worked but the close game button wouldn't.

Some hints on what we have to do or need for this would helpful.
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 9th Jul 2010 16:43
Thanks Green Gandalf =] Sorry about not having any instructions. But here are some:

You can start a server from the game through the create lobby page. But you have to change that line as I mentioned above.
On that page, you enter any info to the text boxes(the game modes dont work yet), and hit accept. The server should run granted you changed that line.(This is where I get one crash). If you get past that, wait a few seconds for input in the top left corner for a name. After you hit enter, it should connect you to the lobby. That works sometimes. Ive also noticed now that clicking the start game button in the lobby crashes too.

You could compile the server and run it, then join through the join lobby page. Etner localhost for the sserver ip and whatever password you have on the server(default is "test"). Wait a few for input again for a name. Hit enter and I get a crash there.

My logs are totally random sometimes, and make it farther than others sometimes. So I dont know.

When it crashes, the window just comes up and says it has stopped responding and needs to close. You know and it cant find a solution and whatnot. I dont even get a Crash_On text file.

Dev team portal Email me to join the dev team!

Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 9th Jul 2010 16:51
Thanks for the explanation. I forgot your earlier instruction about changing a line. I'll try again later.
FireIndy
17
Years of Service
User Offline
Joined: 17th Jan 2007
Location: US of A
Posted: 9th Jul 2010 18:25
Alright thanks dude. Im going on vacation for a week here so no worries. But if you find anything let me know =]

Dev team portal Email me to join the dev team!

Login to post a reply

Server time is: 2024-05-05 16:08:29
Your offset time is: 2024-05-05 16:08:29