Author Topic: I'm making a CityRPG mod that doesn't use Iban's core scripts.  (Read 2667 times)

This is intended to be like /Ty's CityRPG while being sort of more realistic.
Code: [Select]
//----------PROJECT: AxoCity
//----------AUTHOR: Axolotl (BL_ID 32440)
//----------SCRIPT: Saver loading and generic functionality
//Saver loop, generation, etc.

function AxoCity_CreateRPDB()
{
warn("... Attempting to create and initialize AxoCity Saver");
if (isObject(AxoCity_RPDB))
return;
new ScriptObject(AxoCity_RPDB)
{
class = Saver;
folder = "config/server/AxoCity/saves/";
file = "config/server/AxoCity/listID.dat";
defFile = "config/server/AxoCity/default.dat";
saveExt = "sav";
};

AxoCity_RPDB.addValue("Job", "Civilian");
AxoCity_RPDB.addValue("Money", 100);
AxoCity_RPDB.addValue("Ore", 0);
AxoCity_RPDB.addValue("Lumber", 0);
AxoCity_RPDB.addValue("Fish", 0);
AxoCity_RPDB.addValue("Education", 0);
AxoCity_RPDB.addValue("JailTime", 0);
AxoCity_RPDB.addValue("Demerits", 0);
AxoCity_RPDB.addBool("CrimRecord", false);
AxoCity_RPDB.saveDefs();

AxoCity_RPDB.load();
AxoCity_RPDB.loadKeyList();

AxoCity_RPDB.nonPlayerData = AxoCity_RPDB.makeOnline(888888); //888888 will never be used so who cares, because I don't feel like making a SaverRow.
}
It'll probably be throwaway but it's worth trying.

I've had my fair share of people yelling at me about Sassy and RPCore, so I am just going to use RPCore's Saver.
« Last Edit: December 16, 2012, 04:31:16 PM by Axolotl2 »

Are you writing this from scratch?

Are you writing this from scratch?
It'll implement only some elements from Iban's CityRPG, like Hellen (I found an eval() on it, so I'll try to work around that) and the taser.

One of the reasons I am not using Sassy is that I don't want Ephialtes to hate me even more for running Iban's CityRPG on his hosting service. One of the reasons I am not using RPCore is because it is buggy and McTwist abandoned the project.
« Last Edit: December 16, 2012, 04:29:30 PM by Axolotl2 »

Quote from: Title
I'm making a CityRPG mod that doesn't use Iban's core scripts.
We have like 3 or 4 but almost none of them got publicly released.

We have like 3 or 4 but almost none of them got publicly released.
Knowing my personality, I'll probably not complete this. It's worth the try.

I found an eval() on it, so I'll try to work around that
eval !$= evil
Post the code for the eval statement. In most cases, eval is completely harmless. As long as the users cannot directly input code to be evaluated, you'll be fine.

Good luck on this project, it looks like you know what you're doing.

One of the reasons I am not using Sassy is that I don't want Ephialtes to hate me even more for running Iban's CityRPG on his hosting service.
It's your server lol, run whatever you want on it (within reason ofc, no CPU raping)

Please don't Jasa this.

One of the reasons I am not using Sassy is that I don't want Ephialtes to hate me even more for running Iban's CityRPG on his hosting service.
It's good that you know CityRPG sucks in that manner.

It's your server lol, run whatever you want on it (within reason ofc, no CPU raping)
Exactly, I think Sassy is a CPU raper when 20+ people are on the server.

Please don't Jasa this.

Yep, not a good idea.

edit:

Exactly, I think Sassy is a CPU raper when 20+ people are on the server.

Well, Sassy 1.3 is not nearly as CPU intensive as the Sassy version that Iban's well-known mod uses. I can get that to you if you'd like.
« Last Edit: December 16, 2012, 09:21:30 PM by Ravencroft² »

This is intended to be like /Ty's CityRPG while being sort of more realistic.
Don't do this either. Ty's sucks.


Don't do this either. Ty's sucks.

The reason it sucked was because it used ibans edited with a giant loop that ran economy and your family stuff. Economy wasn't that bad of idea, but it could use some great improving.

The reason it sucked was because it used ibans edited with a giant loop that ran economy and your family stuff. Economy wasn't that bad of idea, but it could use some great improving.

wasnt really his idea either, he couldve done it a lot better if he tried. just like his cte families system in which you cant use color and font codes

wasnt really his idea either, he couldve done it a lot better if he tried. just like his cte families system in which you cant use color and font codes
I actually am sort of a friend with Port, so he can help me in small cases.
Well, Sassy 1.3 is not nearly as CPU intensive as the Sassy version that Iban's well-known mod uses. I can get that to you if you'd like.
I want to keep using Saver. If somebody can show that Sassy 1.3 is less CPU intensive than Saver, then I might switch.