|
#21
|
|||
|
|||
|
The google one. Thanks!
|
| Advertisement | [Remove Advertisement] |
|
|
|
|
#22
|
||||
|
||||
|
Aha, that's Bzdbbb's old site. It was replaced with www.xeroo.net pretty quick. At the moment it is abandoned for all I know and will not be updated. Bzdbbb was, last time I heard, working on a X-Fi2 IDE called Koi Pond. Not sure how that is progressing though but he hasn't been around much lately despite being a mod here, so my guess is he is busy with something important.
There is the LUA wiki by thievingSix for learning the possible commands you can use, so as long as you know some basic programming you can begin from there. Also if you have some specific question you can search the forum and see if somebody have asked about it already, if not you can make a thread about it and ask. Hope that helps.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it! Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it. Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^ |
|
#23
|
|||
|
|||
|
I heard about xeroo.net, but there is sadly only a application installing guide.
I have also heard about thievingSix's LUA wiki, its of great use! However, do you know an app which have a simply load function so i can get a basic idea of how it works? I have read through the forums and i can't find any1 who have the same problem as I. Also the wiki is'nt of much help here. |
|
#24
|
||||
|
||||
|
Quote:
Load functions can be found in: BlackJack, ParadiseSlots, Solitaire, among others. I think you could learn a lot from BlackJack since I have carefully commented most important lines. Although the code is a bit messy and in need of cleanup some day. Anyway, below is how I read in a save in the form of two numbers and one string. (It requires a .lua file you store the info in, preferably named save or similar. I kept it in a folder called save also to keep people from accidentally messing with it) Code:
--Read game save and settings
sSave = io.open("save/save.lua") --Open stats file in read mode(default)
if (sSave ~= nil) then --if it isn't empty
input = sSave:read("*l") --read the first line
if (input ~= nil) then --if input isn't empty
cash = tonumber(input) --convert input into a number and save as cash
end
input = sSave:read("*l") --read the next line
if (input ~= nil) then --if input isn't empty
sound = tonumber(input) --convert input into a number and save in sound
end
input = sSave:read("*l") --read the next line
if (input ~= nil) then --if input isn't empty
currentSkin = input --Set currentSkin to the string on the line
end
sSave:close() --close file
end
Code:
--Saves your game when called
function saveStats()
sSave = io.open("save/save.lua","w") --Open stats file in write mode
if (sSave ~= nil) then --if it isn't empty
sSave:write(cash,"\n") --write cash amount into it
sSave:write(sound,"\n") --write sound setting
sSave:write(currentSkin,"\n") --write skin setting
sSave:close() --close file
end
end
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it! Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it. Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^ |
|
#25
|
|||
|
|||
|
Thank you! Taking a look at it now
|
|
#26
|
||||
|
||||
|
I find it easier to have the save/stats file in this format:
Code:
highscore=0 cash=0 sounds=0 You just have to save the stats carefully, like this: Code:
sSave:write("highscore=",highscore,"\n","cash=",cash,"\n","sounds=",sounds)
|
|
#27
|
||||
|
||||
|
Quote:
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it! Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it. Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^ |
![]() |
| Tags |
| apps, creative, tutorials, x-fi2, zen |
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 05:39 PM.













Linear Mode
