Alice Community  

Go Back   Alice Community > Alice 2 > Share Worlds

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
World Loader - Link your worlds up!!!
Old
arty-fishL
Senior Member
 
arty-fishL's Avatar
 
Status: Offline
Posts: 1,878
Join Date: Mar 2008
Location: In the corner of your eye
Lightbulb World Loader - Link your worlds up!!! - 05-17-2011, 04:34 AM

beachbum111111 gave me a really good idea.

Wouldn't it be great if you could link worlds together?!

So I created a small, but powerful tool to do just that.
It allows another world to be loaded at runtime.

WATCH THE NEW VIDEO TUTORIAL!!!

I forgot to mention in the video tutorial:
The worlds must be in the same folder/directory.

__________________________________________________ _______

This is useful for linking different levels or parts of a game together, without bloating up the size of each world. This can aid in greatly decreasing lag and it allows for infinitely long worlds. An example of where this would help could be in jediaction's
Halo - the generator (or Halo 2).

When you run the world the next world should load whenever this method gets activated, providing the next world actually exists.

When posting linked world on the Alice Community, post them all together and instruct users to download them all into the same folder as each other.


WARNING - if you are developing the world, make sure you save before playing, because this automatically bypasses the ask to save dialog before loading the next world. Also, do not rename the tool object in the world or it wont work.

I hope this helps you.

__________________________________________________ _______

UPDATE 2 - v2 : fixed a script bug
UPDATE 3 - actually v2 this time
UPDATE 4 - (OLD) VIDEO TUTORIAL HERE
UPDATE 5 - v3 : fixed another script bug

UPDATE 6
- v4 : new and revised features added. It can now:
- Detect non-existing worlds and gives the user the choice of locating the world.
- Detect loading failures and displays an error message.
- Carrying over variables is possible (see video tutorial), so your score etc doesn't get lost.
- Going back to a pre-defined world in the sequence of links when any loaded world is stopped is possible (see video tutorial).

The
loadWorld method has been renamed to load_world .

UPDATE 7 - NEW VIDEO TUTORIAL HERE
UPDATE 8 - v5 : Variables other than strings should carry now
Attached Files
File Type: a2c WorldLoaderTool.a2c (23.1 KB, 79 views)


█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█
█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█
█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█
█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█
█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█
█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█

I have mostly moved on from Alice, but may still respond to messages if important [-]

Last edited by arty-fishL; 05-19-2011 at 01:17 PM. Reason: update v5
   
Reply With Quote
 

Tags
join, level, link, load, loader, world

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.