Maze Party

General debates and discussion about the Guild of Writers and Age creation

Postby D'Lanor » Mon Jul 31, 2006 5:27 am

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.
"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

Postby MercAngel » Mon Jul 31, 2006 8:11 am

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
MercAngel
 
Posts: 25
Joined: Mon Oct 29, 2007 5:57 pm

Postby MercAngel » Mon Jul 31, 2006 5:00 pm

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.
MercAngel
 
Posts: 25
Joined: Mon Oct 29, 2007 5:57 pm

Postby MercAngel » Mon Jul 31, 2006 7:53 pm

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
MercAngel
 
Posts: 25
Joined: Mon Oct 29, 2007 5:57 pm

Postby ShadowDude » Mon Jul 31, 2006 7:55 pm

[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.
ShadowDude
 
Posts: 60
Joined: Sun Sep 30, 2007 11:33 am
Location: North Carolina

Postby Aloys » Mon Jul 31, 2006 8:11 pm

BTW a new version of the plugin will be available tomorrow that should correct this bug.
User avatar
Aloys
 
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
Location: France (GMT +1)

Postby MercAngel » Tue Aug 01, 2006 5:40 pm

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
MercAngel
 
Posts: 25
Joined: Mon Oct 29, 2007 5:57 pm

Postby D'Lanor » Tue Aug 01, 2006 5:52 pm

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.
"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

Postby MercAngel » Tue Aug 01, 2006 7:30 pm

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
MercAngel
 
Posts: 25
Joined: Mon Oct 29, 2007 5:57 pm

Postby MercAngel » Sat Aug 05, 2006 2:21 pm

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.
MercAngel
 
Posts: 25
Joined: Mon Oct 29, 2007 5:57 pm

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 15 guests

cron