Poll

Should I hold a really nice edit of Iban's V2, use IT for the revival, then have a new city built for my mod in progress?

Yes.
13 (86.7%)
No.
2 (13.3%)

Total Members Voted: 15

Author Topic: Dionysus's CityRPG [joshua moon amirite]  (Read 35918 times)

Bad/Idk/Good?
It's good but Dion can't grasp ahold of the purpose of ScriptObjects and Arrays, so I'm forced to listen to him complain even though I've created a perfectly fine saving/loading system

It's good but Dion can't grasp ahold of the purpose of ScriptObjects and Arrays, so I'm forced to listen to him complain even though I've created a perfectly fine saving/loading system
._.
lol
So you get data with like cityblah.data[1337].value[emone] ?

It's good but Dion can't grasp ahold of the purpose of ScriptObjects and Arrays, so I'm forced to listen to him complain even though I've created a perfectly fine saving/loading system

No, you haven't. It's not even halfway done.


No, you haven't. It's not even halfway done.


What the forget do you mean?
There's a saving function, there's a loading function, what the forget else does a data saver do?

What the forget do you mean?
There's a saving function, there's a loading function, what the forget else does a data saver do?
Did you post it somewhere?

Did you post it somewhere?
I have it on the google drive.

What the forget do you mean?
There's a saving function, there's a loading function, what the forget else does a data saver do?

#1, you didn't even define the path to save stuff to,
#2, you didn't even define a format for it to go by, so it knows what it's loading.

Code: [Select]
// ============================================================
// Project            :  CityRPG
// Created on         :  Saturday, November 03, 2012 9:36 PM
// Description        :  Stat saving file
// Author             :  JazZ
// ============================================================

package Anna
{
function DataHolder::savePlayer(%this, %client)
{
%this.data[%client.BL_ID, "VARNAME"] = %client.variable;
%this.data[%client.BL_ID, "Money"] = %client.money;
%this.data[%client.BL_ID, "Bank"] = %client.bank;
%this.save("filepath"); //filepath needs to be defined... Do it quick so I can work
}

function DataHolder::loadPlayerData(%this, %client)
{
%client.variable = %this.data[%client.BL_ID, "VARNAME"];
%client.money = %this.data[%client.BL_ID, "Money"];
%client.bank = %this.data[%client.BL_ID, "Bank"];
}

function loadPlayerData()
{
while(isObject(MyDataHolder))
MyDataHolder.delete();
exec("config/My_Addon/PlayerData.cs"); //dafuq? why are you executing it? running code? If it is not code just open the file to read.
}
};
ActivatePackage(Anna);


best saving system 2012

amirite?

Wtf, are you trying to copy Iban?

For a Jail bailing system make a brick to put in the police station to bail people for a price. The more times they've been in jail the higher the price.

Guys, forget scripting and use VCE.

Wtf, are you trying to copy Iban?

Hail naw.


I don't want to make the same goddamn mistakes he did with v2. I do believe though, that some of the features in his v3 are pretty badass.

Guys, forget scripting and use VCE.

welcome

#1, you didn't even define the path to save stuff to,
#2, you didn't even define a format for it to go by, so it knows what it's loading.

#1 you can't figure this out?  Are you kidding me?  It's YOUR mod, I was letting YOU pick where you wanted it.
#2 What the forget?

#1 you can't figure this out?  Are you kidding me?  It's YOUR mod, I was letting YOU pick where you wanted it.

And I thought we distinguished that you were in charge of the saving system from the beginning?

I'll take care of it, don't worry.

best saving system 2012

amirite?
http://forum.blockland.us/index.php?topic=202677.0
Code: [Select]
new scriptobject(CityData)
{
class = molodion;
autoloadkeys=1;
savepath="config/city/data/";
};
CityData.registervalue("emone",0);
CityData.registervalue("whatever","default");
call CityData.createdata(BL_ID) if someone joins, it will create a new data or do do nothing if it already exists
call CityData.savedata(BL_ID) when someone leaves
Modify/Get data with CityData.Data[bl_id].value["value"] = "axblah"
« Last Edit: November 07, 2012, 04:19:01 PM by Blocki »

Dammit, thank you, all though I still wont be using the entire code.