
Originally Posted by
ffow
Thanks 100G ... I gather the dll and packaging will cause issues with iOS ?
Denara if you have a simple example to read and save that would be great !
You better not use the dll...
Denara's method example:
Code:
class MySavingClass extends Object
config(MySavingFile);
var config int MyCurrentLevel;
var config string MySavedName;
DefaultProperties
{
}
The 2 variables in that class will be saved to the ini file specified in config.
To read the value:
Next you create the kismet node:
Code:
class SeqAct_GetMyCurrentLevel extends SequenceAction;
var int Value;
event Activated()
{
local MySavingClass MSC;
MSC = new class'MySavingClass';
Value = MSC.MyCurrentLevel;
}
DefaultProperties
{
ObjName = "Get My Current Level";
ObjCategory = "MyCategory";
bCallHandler = false;
VariableLinks(0) = (ExpectedType=class'SeqVar_Int',LinkDesc="Value",PropertyName=Value,bWriteable=true);
}
This action node would get the value from the previously created class and pass it onto the linked variable node.
You'd do the same thing for MySavedName but with ExpectedType being class'SeqVar_String'.
To write a value:
Code:
class SeqAct_SetMyCurrentLevel extends SequenceAction;
var int Value;
event Activated()
{
local MySavingClass MSC;
MSC = new class'MySavingClass';
MSC.MyCurrentLevel = Value;
MSC.SaveConfig();
}
DefaultProperties
{
ObjName = "Set My Current Level";
ObjCategory = "MyCategory";
bCallHandler = false;
VariableLinks(0) = (ExpectedType=class'SeqVar_Int',LinkDesc="Value",PropertyName=Value);
}
You could also make nodes to handle all the values instead of a node for each value. I can write an example if you want.
Bookmarks