Page 3 of 4

Posted: Mon Jul 31, 2006 5:27 am
by D'Lanor
VAR BOOL only holds 1 or 0. If you are going to use that you indeed have to use one SDL for every 1 and 0. :blink:

That is why I suggested conversion. Conversion to a numeric code requires a VAR BYTE or for longer numbers VAR INT. And for a string you could use VAR STRING32.

Your list converted to decimals looks like this:

Code: Select all

0
1022
514
943
40
1018
514
958
162
2030
0

For this conversion I used a standalone Python binary converter that I found here.

This is already much shorter and could be stored in several INT SDLs or in one STRING32 SDL like this: 0,1022,514,943,40,1018,514,958,162,2030,0
I would go for the STRING32 if it can hold this.

I am sure there are methods that are more efficient. I believe encryption methods usually produce relatively short hashes, but that is perhaps too complicated for what you are trying to do.

Posted: Mon Jul 31, 2006 8:11 am
by MercAngel
ok i am useing STRING32 and i am getting this error in the log files

[SDL] Trying to set a tuple value to something that isn't a tuple

Fixed

Posted: Mon Jul 31, 2006 5:00 pm
by MercAngel
I hope to have a test ready tonight arpund 10:30PM Eastern time

i new file has been posted it now had a TheMaze.pak file and an SDL file please make sure to put them in the right place


NOTE:it will take a little longer to link to this new one has it now has to load the maze from the vault before you link in.

NOTE:This version can only be played on Atlantis. The code to create a random maze is in my KI and not in the age yet it will be in the final version of the age.

Posted: Mon Jul 31, 2006 7:53 pm
by MercAngel
Big Bug after a link to the age one time and then leave and come back every thing is gone i am just in the middle of this big void no walls no nothing

Posted: Mon Jul 31, 2006 7:55 pm
by ShadowDude
[quote="MercAngel"]Big Bug after a link to the age one time and then leave and come back every thing is gone i am just in the middle of this big void no walls no nothing

Yeah this seems to be a side effect of the new PRP plugin... all the newer ages (Ahras Pahts, Galamay 2.0, etc.) exhibit this bug.

Posted: Mon Jul 31, 2006 8:11 pm
by Aloys
BTW a new version of the plugin will be available tomorrow that should correct this bug.

Posted: Tue Aug 01, 2006 5:40 pm
by MercAngel
ok it looks like it is fixed

if any one wants to come play in the maze i be on again tonight if you do not get me give me about five

Make Sure to download the lastest one RC2

Posted: Tue Aug 01, 2006 5:52 pm
by D'Lanor
I can not find RC2. Only RC1 is in the download database of your forum. The files in the zip are from July 31.

Edit: Oops, I was too quick. It seems you just updated the download.

Posted: Tue Aug 01, 2006 7:30 pm
by MercAngel
ok got some one to help test

some one linking in to the age does not get a copy of the maxe they get nothing


Never mind my tester forgot to copy the python files

Posted: Sat Aug 05, 2006 2:21 pm
by MercAngel
Help With some Python

this code it is a Pythfilemod for a button in TheMaze age to create a new maze it should only work for the age owner

Code: Select all

    
def OnNotify(self, state, id, events):
        global maze
        global mx
        global my
        global ndir
        global zdir
        print 'OnNotfiy: id=',
        print id
        print 'OnNotfiy: actClickableObject.id=',
        print actClickableObject.id
        if (id == actClickableObject.id):
            if (ptVault().amOwnerOfCurrentAge()):
                self.MakeMaze():



Here is what happens if someone who is not the owner clicks on the button nthing happens.

Now if i am in the age and i am the owner and some one clicks on the button it triggers the code for me i need to stop this from happening.