ametist wrote:I assume I have to start with the.sdl file, setting all states there. But I dont even know where I write that file, or how?
# READ: When modifying an SDL record, do *not* modify the
# existing record. You must copy and paste a new version
# below the current one and make your changes there.
STATEDESC YourAgeFileNameHere # obviously replace with your Age's filename !
VAR BOOL myBooleanVariable DEFAULT=0
VAR BOOL anotherBooleanVariable DEFAULT=1
VAR BYTE aSmallNumber DEFAULT=3
VAR SHORT aBiggerNumber DEFAULT=12000
VAR INT aVeryBigNumber DEFAULT=432489
VAR STRING32 someText DEFAULT="Hello, world !"
Aloys wrote:This kind of discussion always make me wonder how the heck Cyan did all of Uru like that back in the day??
[The local avatar triggers an activator on the local client]
activator NOTIFIES→ python script CHANGES→ sdl
[The SDL change is synchronised over the network, everyone receives it]
sdl change NOTIFIES→ python script RUNS→ responder
[Each client runs the responder locally]
Aloys wrote:In this day and age (pun intended) of evolved tools, and visual scripting, and nodes, and what have you
Aloys wrote:how did they developed all of Uru's puzzles with Python? (or any other form of non game designer friendly tools). One key thing to any fluid game development is the ability to iterate. Design, implement, test, repeat.
. Dont'worry Aloys, I enjoy reading yours, and Sirius', thoughts about 'all things URU'Aloys wrote:Forget it, this is getting off topic. Sorry Ametist. I'll start another thread.
Sirius wrote:Creating the SDL file is fairly simple - you can do it in PlasmaShop, and you just save it in Uru's "SDL" folder
Sirius wrote:Concerning the way PRPs, Python and SDL work... Hoikas or Deledrius, if you're reading this, could you please confirm the following ?
ametist wrote:I want the 'clickable1' to be shown from start so I would set a boolean variable like this " VAR BOOL clickable1 DEFAULT=0" in the SDL file, and to hide when I click it
I would attach the nodetree to the clickable
Tsar Hoikas wrote:Sirius wrote:Creating the SDL file is fairly simple - you can do it in PlasmaShop, and you just save it in Uru's "SDL" folder
Don't do this. Korman will export the text note "<agename>.sdl" for you. This means that Korman will overwrite any manual SDL file you try to make.
Tsar Hoikas wrote:ametist wrote:I want the 'clickable1' to be shown from start so I would set a boolean variable like this " VAR BOOL clickable1 DEFAULT=0" in the SDL file, and to hide when I click it
DEFAULT needs to be 1.
Tsar Hoikas wrote:I would attach the nodetree to the clickable
Yes - the xAgeSDLBoolShowHide.py script affects the object that the node tree is attached to.
Be conscientious re the x[...] scripts - there were some arguments added by Cyan in MOUL that are not present in PotS. You may have to compare the PotS and MOUL scripts carefully if you intend to export to the legacy PotS engine.
Sirius wrote:Plasma has many features that allow you to completely bypass SDLs by using "persistent" animations, or forcing some objects to trigger over the network instead of only locally. But that's like fully rotating a steering wheel on the highway - just because you can do it, doesn't mean you should... AFAIK they always avoided that, and kept to the way I mentioned with SDLs.
Users browsing this forum: No registered users and 2 guests