Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

Crashing!!

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
User avatar
lzrstrm
Member
Member
Posts: 122
Joined: September 21st, 2011, 8:26 pm
Name: Cameron
Location: Canada

Crashing!!

Post by lzrstrm »

Im still trying to learn to use RPG Mode

so i start a new game under PlatinumArtsSandbox2.7.1\data\rpg\games
my game`s .cfg file says

Code: Select all

r_preparemap "winter1" 0

firstmap winter1
gameversion 1
compatversion 1

exec data/rpg/hud_standard.cfg
If i dont edit anything else it works fine and doesn`t crash when I select the game
But...
Everytime I add a new critter and a script for the critter, when i go to start my game it crashes and sandbox shuts down.



I have been given a patch for this, But i dont know how to install it.
If you can tell me how to install it or have a different fix THX



Patch

Code: Select all

        Index: trunk/src/rpggame/rpgrender.cpp
        ===================================================================
        --- src/rpggame/rpgrender.cpp   (revision 3359)
        +++ src/rpggame/rpgrender.cpp   (revision 3360)
        @@ -42,6 +42,7 @@

           void rendergame(bool mainpass)
           {
        +      if(!curmap) return;
              startmodelbatches();

              if(editmode)
The patch was given to me by Hirato
and im using Sandbox 2.7.1
Virus 44
Image
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Crashing!!

Post by arcones »

Hopefully you've placed it in the right directory:

Code: Select all

Index: trunk/src/rpggame/rpgrender.cpp
Once you've done that, you'll need to compile Sandbox in order for the patch to work.
Image
Want a user bar like this one? PM Leo!
User avatar
lzrstrm
Member
Member
Posts: 122
Joined: September 21st, 2011, 8:26 pm
Name: Cameron
Location: Canada

Re: Crashing!!

Post by lzrstrm »

@arcones

I dont even know how to use/Install the patch
all i know is i use the codeblocks program
can u give me a writen tutorial on how to use the patch and how to compile the code

Code: Select all

        --- src/rpggame/rpgrender.cpp   (revision 3359)
        +++ src/rpggame/rpgrender.cpp   (revision 3360)
        @@ -42,6 +42,7 @@

           void rendergame(bool mainpass)
           {
        +      if(!curmap) return;
              startmodelbatches();

              if(editmode)
Virus 44
Image
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Crashing!!

Post by arcones »

lzrstrm wrote:@arcones

I dont even know how to use/Install the patch
all i know is i use the codeblocks program
can u give me a writen tutorial on how to use the patch and how to compile the code

Code: Select all

        --- src/rpggame/rpgrender.cpp   (revision 3359)
        +++ src/rpggame/rpgrender.cpp   (revision 3360)
        @@ -42,6 +42,7 @@

           void rendergame(bool mainpass)
           {
        +      if(!curmap) return;
              startmodelbatches();

              if(editmode)
First, when have the code, go to the root Sandbox folder (aka, PlatinumArtsSandbox2.7.1) Then, to src/rpggame/rpgrender.cpp

Place the code in that file and save. Then, compile Sandbox (since you have Codeblocks). I believe that will work.
Image
Want a user bar like this one? PM Leo!
User avatar
lzrstrm
Member
Member
Posts: 122
Joined: September 21st, 2011, 8:26 pm
Name: Cameron
Location: Canada

Re: Crashing!!

Post by lzrstrm »

@arcones

do i add the code to the end of the file or do i erase everything then add it?
Virus 44
Image
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Crashing!!

Post by arcones »

Definitely DO NOT erase the rest of it. I'm not 100% sure if you need to add it at a specific point in the file, but I don't think so. Adding it at the end should suffice.
Image
Want a user bar like this one? PM Leo!
User avatar
lzrstrm
Member
Member
Posts: 122
Joined: September 21st, 2011, 8:26 pm
Name: Cameron
Location: Canada

Re: Crashing!!

Post by lzrstrm »

Ok now how do i compile sandbox?


I dont use this program ever so i dont know how to use it :P
Virus 44
Image
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Crashing!!

Post by arcones »

To the wiki! Compiling the Source Code ;D

That should cover you!
Image
Want a user bar like this one? PM Leo!
User avatar
lzrstrm
Member
Member
Posts: 122
Joined: September 21st, 2011, 8:26 pm
Name: Cameron
Location: Canada

Re: Crashing!!

Post by lzrstrm »

Its not compiling i get errors, how do i fix them?



this is the errors

Code: Select all

"Sandbox - krs" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
"Sandbox - pzl" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
Nothing to be done.
Virus 44
Image
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Crashing!!

Post by chocolatepie33 »

I also use Code::Blocks, you may require MinGW or another program to work.

To do that:

1) Get MinGW
2) Open Code::Blocks, go to settings, view compiler/debugger. Adjust paths as needed.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
Locked