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.

Rpg 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.
Locked
User avatar
lzrstrm
Member
Member
Posts: 122
Joined: September 21st, 2011, 8:26 pm
Name: Cameron
Location: Canada

Rpg crashing

Post 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!!! :!: :?:
Virus 44
Image
Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: Rpg crashing

Post by Hirato »

For your game not loading your map, you probably screwed up :P
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
This is not a url, clicking it is pointless
User avatar
lzrstrm
Member
Member
Posts: 122
Joined: September 21st, 2011, 8:26 pm
Name: Cameron
Location: Canada

Re: Rpg crashing

Post 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
Virus 44
Image
Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: Rpg crashing

Post by Hirato »

This is not a url, clicking it is pointless
User avatar
lzrstrm
Member
Member
Posts: 122
Joined: September 21st, 2011, 8:26 pm
Name: Cameron
Location: Canada

Re: Rpg crashing

Post 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
Virus 44
Image
User avatar
lzrstrm
Member
Member
Posts: 122
Joined: September 21st, 2011, 8:26 pm
Name: Cameron
Location: Canada

Re: Rpg crashing

Post 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
Virus 44
Image
Locked