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
Location: Canada

Crashing!!

Postby lzrstrm » December 5th, 2011, 12:49 am

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
Current Project
The Shadow People

Image
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!!

Postby arcones » December 5th, 2011, 12:07 pm

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
Location: Canada

Re: Crashing!!

Postby lzrstrm » December 5th, 2011, 6:28 pm

@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)
Current Project
The Shadow People

Image
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!!

Postby arcones » December 5th, 2011, 8:00 pm

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
Location: Canada

Re: Crashing!!

Postby lzrstrm » December 5th, 2011, 8:08 pm

@arcones

do i add the code to the end of the file or do i erase everything then add it?
Current Project
The Shadow People

Image
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!!

Postby arcones » December 5th, 2011, 8:16 pm

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
Location: Canada

Re: Crashing!!

Postby lzrstrm » December 5th, 2011, 8:18 pm

Ok now how do i compile sandbox?


I dont use this program ever so i dont know how to use it :P
Current Project
The Shadow People

Image
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!!

Postby arcones » December 5th, 2011, 8:20 pm

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
Location: Canada

Re: Crashing!!

Postby lzrstrm » December 5th, 2011, 8:50 pm

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.
Current Project
The Shadow People

Image
Image

chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Crashing!!

Postby chocolatepie33 » December 5th, 2011, 10:17 pm

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!


Return to “Sandbox General Support”

Who is online

Users browsing this forum: No registered users and 1 guest