Page 1 of 1
Rpg crashing
Posted: November 18th, 2011, 8:08 pm
by lzrstrm
This is in PAS 2.7.1
Im starting an RPG game just to get used to scripting
i`v started a new game under PlatinumArtsSandbox2.7.1\data\rpg\games
and i was wondering how do i make it load my game`s .ogz and -art.cfg so i can play it
Because when i click play. on my level it goes to the village map?
What i mean is when i start up sandbox RPG and i go into the menu click on load game and i click on my game which is in the list with the others. it loads up village or it just crashes and shuts down
HELP!!!

Re: Rpg crashing
Posted: November 18th, 2011, 11:34 pm
by Hirato
For your game not loading your map, you probably screwed up

there's a tutorial on the wiki, look at the first part.
as for the crash, try this 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)
Don't forget to compile a fresh set of binaries
http://www.sandboxgamemaker.com/wiki/in ... ource_code
Re: Rpg crashing
Posted: November 19th, 2011, 1:54 am
by lzrstrm
@Hirato
do i add the c++ Text at the end of the rpgrender.cpp
or do i erase it all then put that in
then compile
Re: Rpg crashing
Posted: November 19th, 2011, 11:04 am
by Hirato
Re: Rpg crashing
Posted: November 19th, 2011, 2:30 pm
by lzrstrm
@Hirato
Sorry if i dont understand you 100% but are u saying i have to make a new .text doc then add
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)
in it.
or would the text look like this
Code: Select all
Index: PlatinumArtsSandbox2.7.1/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)
can u try to explain more plz i`m really confused
Re: Rpg crashing
Posted: November 19th, 2011, 2:54 pm
by lzrstrm
I know i didnt screw when starting a new game under
PlatinumArtsSandbox2.7.1\data\rpg\games
because sometimes it works and the game starts up when i click on load game/my game(tutorial)
but 9/10ths of the times sandbox just crashes when i click on my game