Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 559 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Loading a level from a published file #455035
10/03/15 22:36
10/03/15 22:36
Joined: Apr 2005
Posts: 795
U.S.A. Michigan
exile Offline OP
User
exile  Offline OP
User

Joined: Apr 2005
Posts: 795
U.S.A. Michigan
Hey guys,

I am trying to get a published game to load a map from a text file. Essentially I have a text file which looks like this;

Map=test.wmb
Sky=skybox+6.tga
Music=testMusic.ogg

Now when I load the game up from SED it loads just fine, however when I publish the game it can't find the test.wmb file. From what I can tell A8 will combine the maps curing the publishing process. What I am eventually trying to do is have the published game look in the Maps directory and populate a list with any sub directories in that directory. This is so I can output the results to an internal "maps" string which will be used to show the player which maps are available on their system. Then when the player selects a Map, the game will navigate to the selected map directory (Maps>Arena) and pull the map.config file which will tell the engine to load the selected map. Any ideas on how to achieve this? Again, the way I have it set now works perfectly but only when it isn't published. Any ideas will be appreciated. Thanks again!

Re: Loading a level from a published file [Re: exile] #455036
10/03/15 22:51
10/03/15 22:51
Joined: Apr 2005
Posts: 795
U.S.A. Michigan
exile Offline OP
User
exile  Offline OP
User

Joined: Apr 2005
Posts: 795
U.S.A. Michigan
Just so you know, this is so I can add more maps in the future, also so users can share their own created maps.

Re: Loading a level from a published file [Re: exile] #455038
10/04/15 00:18
10/04/15 00:18
Joined: Feb 2012
Posts: 371
Dico Offline
Senior Member
Dico  Offline
Senior Member

Joined: Feb 2012
Posts: 371
you need to add this line to your script :

STRING* bind_my_file = "test.wmb";

then your map will be ressorsed to wrs laugh

Re: Loading a level from a published file [Re: Dico] #455083
10/07/15 23:24
10/07/15 23:24
Joined: Apr 2005
Posts: 795
U.S.A. Michigan
exile Offline OP
User
exile  Offline OP
User

Joined: Apr 2005
Posts: 795
U.S.A. Michigan
Hey Dico,

Thanks for the tip, the only problem is it still doesn't allow me to run WED generated levels outside of the published game. Remember, users will be able to make their own maps. But again thank you for the suggestion, this works well while developing for the time being


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1