Alice Community  

Go Back   Alice Community > Alice 2 > Share Objects

Reply
 
Thread Tools Display Modes
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 01-22-2012, 10:19 AM

I used it in Halo 2. It works great, but you have to have the file it is looking for to switch to, in the same folder.


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 01-22-2012, 10:35 AM

Ought I to sticky this post most excellent?


(')>
   
Reply With Quote
Old
Dj Tech42
Senior Member
 
Dj Tech42's Avatar
 
Status: Offline
Posts: 203
Join Date: Feb 2011
Default 01-22-2012, 11:08 AM

Quote:
Originally Posted by x2495iiii View Post
Ought I to sticky this post most excellent?
Yes


Flight Simulator with Dogfight Modes:
http://www.alice.org/community/showthread.php?t=6840
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 01-22-2012, 12:07 PM

Very cool. now it's a sticky post. So, what exactly do sticky posts do X2495iiii? I never really learned what they were.


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
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
Arrow 01-22-2012, 12:10 PM

Multiquote time
Quote:
Originally Posted by Dj Tech42 View Post
I was using your string-to-number conversion script before, but this should make things faster.
I haven't been able to try this yet, but it sounds good. However, I may have to change some things to make it cross-platform like I did with the File I/O Tool.
It should work perfectly cross platform, without any changes. You don't actually do anything with files, that is all handled by the tool, you just ask it to save or load a variable. Everything, for every game using this is stored in one file, this is a better approach than using multiple files. You therefore definitely need to set the game_title and author variables otherwise you might interfere with somebody else's saves.

Quote:
Originally Posted by jediaction View Post
I used it in Halo 2. It works great, but you have to have the file it is looking for to switch to, in the same folder.
That's the World Loader Tool you're talking about, this is a new tool for saving.

Quote:
Originally Posted by x2495iiii View Post
Ought I to sticky this post most excellent?
Quote:
Originally Posted by Dj Tech42 View Post
Yes
Yay .


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

I have mostly moved on from Alice, but may still respond to messages if important [¬º-°]¬
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 01-22-2012, 12:15 PM

Forsooth.


(')>
   
Reply With Quote
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,188
Join Date: May 2010
Location: e4eaf2
Default 01-22-2012, 02:28 PM

Looks like this is exactly what Alice needs, thank you!

EDIT: I made a simple world to test this tool. It works perfectly as far as I can tell.
Attached Files
File Type: a2w Save test.a2w (198.5 KB, 13 views)


Thank you for taking the time to read this signature. This signature loves you.

Last edited by DensetsuNoKaboom; 01-23-2012 at 03:08 PM.
   
Reply With Quote
Old
Dj Tech42
Senior Member
 
Dj Tech42's Avatar
 
Status: Offline
Posts: 203
Join Date: Feb 2011
Default 01-24-2012, 06:53 PM

I'm getting a KeyError with it...


Error during simulation.


Alice version: 2.2 12/01/2011

Throwable that caused the error:
Traceback (innermost last):
File "edu.cmu.cs.stage3.alice.core.property.ScriptPrope rty[name=script,owner=edu.cmu.cs.stage3.alice.core.res ponse.ScriptResponse[world.saveTool.has_var.__Unnamed2__]]", line 1, in ?
File "<string>", line 42, in has
KeyError: Dj Tech42.License to Fly.__default


Flight Simulator with Dogfight Modes:
http://www.alice.org/community/showthread.php?t=6840
   
Reply With Quote
Helpful
Old
Lirtjasksta
Junior Member
 
Status: Offline
Posts: 1
Join Date: Jan 2012
Location: 264 Wilmar Farm Road
Default Helpful - 01-24-2012, 07:54 PM

Any error for this FileIOTool.. I will try to download this one... thanks


http://mycomputerkingdom.com- My Computer Kingdom
   
Reply With Quote
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
Default 01-25-2012, 03:25 AM

I know I said I will be gone for a while, but I cant leave without fixing bugs in this .

Dj Tech42, the error your getting is in a validity check I have. For every game there is a default value automatically saved upon every save that must equal "valid", under the name "__default" (please don't use any names with double underscores at the start when saving, they are reserved for use by the internal workings of the tool, I should have said that in the main post, but that is not the problem here anyway).
What I should have noticed in the code is that when that value does not exist there will be an error when the code tries to get it.

I've fixed it by adding my friendly dict class (a class that emulates a python dictionary, but does not throw horrible errors) that I built for Addons.

I've updated the top post with the new version.
I hope no more bugs come up, bye for a while.


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

I have mostly moved on from Alice, but may still respond to messages if important [¬º-°]¬
   
Reply With Quote
Reply

Tags
file, load, save, variable, write


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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.