Author Topic: Advanced Rules  (Read 19341 times)

How come I've already suggested almost everything that could make this mod better in the thread, yet you guys ignore it and post it again? Read my above quotes on the page 3.

Edit: I got new page owned.
« Last Edit: August 15, 2008, 06:43:07 AM by Dyed Brownie »

I was trying to put it in a clearer format that Gikon might be able to implement as code easier.

"make it do server/config"
"Make it write a default file if base/config/server/rules.txt doesn't exist,  and load from that file."

And because I'm feeling even nicer, and rather bored, and because I was just writing this very thing five minutes ago...
Code: [Select]
if(!isFile("config/server/rules.txt")
{
%FO = new FileObject();
%FO.openForWrite("config/server/rules.txt");
%FO.writeline("1. No asking for admin");
%FO.writeline("2. No spam");
%FO.writeline("3. No Event spam");
%FO.writeline("4. Play nice!");
%FO.writeline("5. Have fun!");
%FO.close();
%FO.delete();
}

And thanks to me making this post I even fixed a typo I made... (wrong filetype between the file check and opening it >.>)

And because I'm feeling even nicer, and rather bored, and because I was just writing this very thing five minutes ago...
Code: [Select]
if(!isFile("config/server/rules.txt")
{
%FO = new FileObject();
%FO.openForWrite("config/server/rules.txt");
%FO.writeline("1. No asking for admin");
%FO.writeline("2. No spam");
%FO.writeline("3. No Event spam");
%FO.writeline("4. Play nice!");
%FO.writeline("5. Have fun!");
%FO.close();
%FO.delete();
}

And thanks to me making this post I even fixed a typo I made... (wrong filetype between the file check and opening it >.>)
Code: [Select]
if(!isFile("config/server/rules.txt"))
{
%FO = new FileObject();
%FO.openForWrite("config/server/rules.txt");
%FO.writeline("1. No asking for admin");
%FO.writeline("2. No spam");
%FO.writeline("3. No Event spam");
%FO.writeline("4. Play nice!");
%FO.writeline("5. Have fun!");
%FO.close();
%FO.delete();
}
You still have a typo.

Oh lol  :cookieMonster:
But nice made :D

So if we want to change the rules, we have to extract the zip, change the file, rezip it, and put it back in add-ons?


Seems like a lot of work that could be avoided by putting the loving rules.txt elsewhere.
Winar lets me edit it without extracting.
Make it so, when it runs, if the file "base/config/server/rules.txt" doesn't exist, it creates the file (write the default rule set to it), and then loads from the file in future.
will try....

nice cookie for you and a moster to eat it   :cookieMonster::cookie:

nice cookie for you and a moster to eat it   :cookieMonster::cookie:
...erm..no

For using windows explorer to modify files, save somewhere else like desktop or my documents, delete the file in the zip folder, then drag the new one in.

Nero, ascii art will only make a larger file size.
I think everything else I found was already said.

Anyways, good idea, I modified it myself to make me happy.

Both where from V8 and both did not use a GUI. His is origional in the concept of using an GUI. Others have used other methods but personally I find this to be better.
The console is a gui. And I could port it if you want.

Also, the rules on spawn is broken, at least in every server I've been to.
Half the time it displays it between the time you finish loading and when you spawn, which is only like, half a second, and it goes away after that.

The console is a gui. And I could port it if you want.

Also, the rules on spawn is broken, at least in every server I've been to.
Half the time it displays it between the time you finish loading and when you spawn, which is only like, half a second, and it goes away after that.
That is a common error that shows up, The problem with this is that we once used the onspawn command and that happened. We are not using the onspawn command anymore (for that reason and others) so the error can not be really fixed.
But I will try and fix it.

Hey, How do we change the rules?

I'de like this to be more of a general information box. Is there any way to create a larger MessageBox So I can fit more?


Hey, How do we change the rules?
It is easy if you have 7zip. Open the .zip in 7zip and open rules.txt. DO NOT EXTRACT. Then edit the lines. The first line is the box title. The rest are all the rules. I suggest around 3-5 lines of rules and a concequences sentence. Save the file and when you exit out of notepad 7zip will ask if you wish to chainge the file. Just say yes and it will work.