Crystal Space
Welcome, Guest. Please login or register.
September 18, 2014, 04:59:59 am

Login with username, password and session length
Search:     Advanced search
9018 Posts in 2051 Topics by 8476 Members
Latest Member: Gloriamiller
* Home Help Search Login Register
+  Crystal Space
|-+  Associate Projects
| |-+  CEL Discussion
| | |-+  Load between maps in CEL
« previous next »
Pages: [1] Print
Author Topic: Load between maps in CEL  (Read 3214 times)
Panch
Jr. Member
**
Posts: 80


View Profile Email
« on: February 07, 2008, 12:51:45 am »

With the help of posters on the forums I have a good way of moving between maps in CS but I haven't gotten it yet with CEL.

I load a map similar to the walktut, then later I try to remove that mapfile from the region, remove the regions and zone and create new ones to a new map file like so:

Code:
// Now get the iPcZoneManager interface so we can setup the level.
  region->RemoveMapFile(mapfile);
  zonemgr->RemoveAllRegions();
  zonemgr->RemoveAllZones();


  iCelZone* zone = zonemgr->CreateZone ("main");
  region = zonemgr->CreateRegion ("main");
  zone->LinkRegion (region);

iCelMapFile* battle_mapfile = region->CreateMapFile ();
battle_mapfile->SetPath ("/lev/phage_battle1");
battle_mapfile->SetFile ("world");

But the new map doesn't load, the old map doesn't unload for that matter as well.

What am I missing?

Thanks Smiley
Logged
Panch
Jr. Member
**
Posts: 80


View Profile Email
« Reply #1 on: February 16, 2008, 12:13:58 am »

Answer here:
http://www.crystalspace3d.org/forum/index.php/topic,1586.0.html
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 6.193 seconds with 17 queries.