Python confusion

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Re: Python confusion

Postby boblishman » Sat Mar 28, 2009 5:26 pm

did you make your new animated object an ACTOR .... if you assign an IPO animation to an object that is not an ACTOR ... thats a guaranteed crash to desktop
when it comes to Age creation ... "DOH" seems to be my middle name...
User avatar
boblishman
 
Posts: 882
Joined: Fri Oct 05, 2007 4:47 pm
Location: Spain

Re: Python confusion

Postby Justintime9 » Sat Mar 28, 2009 7:58 pm

That did it :) (can't believe I didn't notice it wasn't an actor :P) It's clickable, but doesn't do anything (I probably just have to move the Avatar Empty or something)
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: Python confusion

Postby diafero » Sun Mar 29, 2009 3:34 am

As the comment in SDL files created by PlasmaShop, and in all Cyan files, states, you must NEVER change an existing version of an SDL STATEDESC block, Offline, this will result in new variables simply being ignored. Online, it can cause a crash of the game server and all clients linking there.
Instead, you ALWAYS have to copy the last version of your SDL (the last block), increase the version number and then do your change. That is necessary for every kind of change (except for comments, of course): No matter whether your add, remove, rename a variable, change it's type or whatever, you have to copy your last block and only edit the new one, having an increased version number. You can do multiple changes in one go though, like adding 5 new variables and changing some others with one version change.

I assume your SDL file looked like this so far:
Code: Select all
STATEDESC Zefora
{
    VERSION 1

    VAR BOOL    WindowOpen[1]    DEFAULT=0 DEFAULTOPTION=VAULT
}

In that case, it should now be:

Code: Select all
STATEDESC Zefora
{
    VERSION 1

    VAR BOOL    WindowOpen[1]    DEFAULT=0 DEFAULTOPTION=VAULT
}

STATEDESC Zefora
{
    VERSION 2

    VAR BOOL    WindowOpen[1]    DEFAULT=0 DEFAULTOPTION=VAULT
    VAR BOOL    LidOpen[1]    DEFAULT=0 DEFAULTOPTION=VAULT
}
I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.

"Many people's horizon is a circle with a radius of zero. They call it their point of view."

Deep Island Shard | Offline KI
diafero
Deep Island Admin
 
Posts: 2972
Joined: Mon May 05, 2008 5:50 am
Location: Germany

Re: Python confusion

Postby D'Lanor » Sun Mar 29, 2009 6:39 am

Hmm, I never had problems offline keeping the same version number as long as I make sure to delete the sav file (which you should always do when testing new versions).

And yes, online it will result in SDL Hell. :twisted: In fact the age and sdl files are the only files which have to be installed on the shard itself (the game server), but one must make absolutely sure that server and clients are updated at the same time. I believe UU was somewhat more tolerant about it than alcugs. It would only crash the clients. :D
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Python confusion

Postby diafero » Sun Mar 29, 2009 9:54 am

I believe UU was somewhat more tolerant about it than alcugs. It would only crash the clients. :D
Well, it could be that the server refuses to load ("crashes" in terms of exits, but in a controlled way) if it finds an invalid (due to not being able to read since the SDL changed) saved age state. But in the end it does not matter who crashes, it makes it impossible to visit the age ;-)

SDL Hell. :twisted:
Almost as bad as DLL Hell, isn't it? :lol:

Hmm, I never had problems offline keeping the same version number as long as I make sure to delete the sav file (which you should always do when testing new versions).
Right, but I thought it'd be better to already tell people what needs to be done in case we can play these ages online :D
I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.

"Many people's horizon is a circle with a radius of zero. They call it their point of view."

Deep Island Shard | Offline KI
diafero
Deep Island Admin
 
Posts: 2972
Joined: Mon May 05, 2008 5:50 am
Location: Germany

Previous

Return to Building

Who is online

Users browsing this forum: Google [Bot] and 8 guests

cron