News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
iGame3D MurgaLua'd
Author Message
iGame3D
Moderator
***


Posts: 231
Group: Moderators
Joined: Apr 2007
Status: Offline
Reputation: 0
Post: #1
RE: iGame3D MurgaLua'd

chrimo Wrote:
While playing around I have some more questions:
1. how can I open/run own scripts with your player (cmd line or open requester) ?
Currently I have just patches the default "game script.lua"


Add a folder inside "Data/Levels/" create your script and call it "load script.lua"
When you launch the current player it will show up in the list, just click to test, you can hide some of those other level folders to make the list shorter.
don't hide level "default", that makes the list of levels

You could also have a load script that simply loads one or many scripts from the Scripts folder as well. I tend to break the load scripts down into digestible smaller scripts, and then tell the load script to load all those files.

You could also redirect the game script.lua to open your level instead of level "default" .. this is the line you change for that.

Code:
if game_func==nil then loadLevel("Data/Levels/default") end


I don't like file requesters, I usually make lists that can load the available levels or models with a click or a drag. I'm not sure how far I got with that in MurgaLua last summer, looks like whatever I did I broke at some point.

There are two .sh files in the Data/Scripts/ folder, thats about as close as we've been to launching igame3d via a terminal window. I monkeyed with that for a bit, but didn't find it particularly useful. iGame3D feeds errors output to console.app, so you'll want that open from time to time to see where if things go wrong.

For a command line in the player, hit Command T after you open the program.
"Command I" creates an inspector window.

chrimo Wrote:
2. Are these demo-snipsets  available as downloadable scripts ?


You mean what I posted in the thread?
Here  they are as level folders and load scripts.

You'll find the background color script is in "ig3d_mac_xcode/Data/Fluid/background_color"

There's plenty of scripts in the Data folder to check out, especially in "/Data/Scripts/Functions/", these are used by most of the current levels available.

Also The Fluid folder is full of UI scripts, that I stopped working on as I was missing something important that ties them all together, still don't know what that is.

Hope that explained some things.

The SVN checkout  should be fine, if you also grab the extra Data directory.
iFly and the other demos are in the levels folder of that, the source with binary alone are pretty much a blank slate as far as content goes.
Not sure what Tobi uploaded for you to test, its probably everything you need.

There is some new documentation that Tobi just posted as well
Particles instructions
Materials instructions
More scripting docs coming up soon.

[edit--added script snippet link]

This post was last modified: 11-29-2007 06:07 AM by iGame3D.

11-29-2007 04:02 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
iGame3D MurgaLua'd - iGame3D - 11-24-2007, 06:54 PM
RE: iGame3D MurgaLua'd - chrimo - 11-24-2007, 09:36 PM
RE: iGame3D MurgaLua'd - chrimo - 11-24-2007, 09:53 PM
RE: iGame3D MurgaLua'd - chrimo - 11-24-2007, 10:13 PM
RE: iGame3D MurgaLua'd - chrimo - 11-24-2007, 10:50 PM
RE: iGame3D MurgaLua'd - chrimo - 11-24-2007, 11:21 PM
RE: iGame3D MurgaLua'd - Tobi - 11-25-2007, 04:36 AM
RE: iGame3D MurgaLua'd - iGame3D - 11-25-2007, 05:14 AM
RE: iGame3D MurgaLua'd - Tobi - 11-25-2007, 05:37 AM
RE: iGame3D MurgaLua'd - chrimo - 11-25-2007, 06:16 AM
RE: iGame3D MurgaLua'd - chrimo - 11-25-2007, 06:38 AM
iGame3D Hello World - iGame3D - 11-25-2007, 09:20 AM
RE: iGame3D MurgaLua'd - chrimo - 11-27-2007, 06:01 AM
RE: iGame3D MurgaLua'd - chrimo - 11-28-2007, 12:26 AM
RE: iGame3D MurgaLua'd - Tobi - 11-28-2007, 06:04 AM
RE: iGame3D MurgaLua'd - chrimo - 11-28-2007, 06:32 AM
RE: iGame3D MurgaLua'd - chrimo - 11-28-2007, 06:36 AM
RE: iGame3D MurgaLua'd - Tobi - 11-28-2007, 07:11 AM
RE: iGame3D MurgaLua'd - chrimo - 11-28-2007, 07:29 AM
RE: iGame3D MurgaLua'd - Tobi - 11-28-2007, 07:43 AM
RE: iGame3D MurgaLua'd - chrimo - 11-29-2007, 02:58 AM
RE: iGame3D MurgaLua'd - iGame3D - 11-29-2007, 03:25 AM
RE: iGame3D MurgaLua'd - chrimo - 11-29-2007, 03:50 AM
RE: iGame3D MurgaLua'd - iGame3D - 11-29-2007 04:02 AM
RE: iGame3D MurgaLua'd - chrimo - 11-29-2007, 06:25 AM
RE: iGame3D MurgaLua'd - Tobi - 11-29-2007, 07:07 AM
RE: iGame3D MurgaLua'd - chrimo - 11-29-2007, 07:29 AM
RE: iGame3D MurgaLua'd - Tobi - 11-29-2007, 07:45 AM
RE: iGame3D MurgaLua'd - Tobi - 11-29-2007, 07:52 AM
RE: iGame3D MurgaLua'd - chrimo - 11-29-2007, 07:42 AM
RE: iGame3D Data Directories - iGame3D - 11-29-2007, 09:10 AM
RE: iGame3D MurgaLua'd - chrimo - 11-29-2007, 09:24 AM
RE: iGame3D MurgaLua'd - chrimo - 12-02-2007, 10:56 PM
RE: iGame3D MurgaLua'd - iGame3D - 12-03-2007, 04:46 AM
RE: iGame3D MurgaLua'd - chrimo - 12-03-2007, 06:50 AM
RE: iGame3D MurgaLua'd - Tobi - 12-03-2007, 07:09 AM
RE: iGame3D MurgaLua'd - chrimo - 12-09-2007, 12:18 AM
RE: iGame3D MurgaLua'd - chrimo - 12-09-2007, 09:32 PM
RE: iGame3D MurgaLua'd - mikshaw - 12-12-2007, 02:47 PM
RE: iGame3D MurgaLua'd - chrimo - 12-12-2007, 08:35 PM
RE: iGame3D MurgaLua'd - mikshaw - 12-13-2007, 01:31 AM
RE: iGame3D MurgaLua'd - iGame3D - 12-13-2007, 02:55 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: