ID:169314
 
1, how do you get byond NOT to load icons into rez (in the build) but to load them from the file and folder its running from (without input) and then load them into rez.

2, is there a way to make a file in text that the user can edit (where hosted) so that he/she can add new things eg
(preset)
"item1","item2"
(addon)
"item1","item2","Reditem"
and when the game next starts loads these into a list

3, how do you check if a folder is in the same folder as the byond is running from eg
if(folder("[folder name]"))
Zmadpeter wrote:
1, how do you get byond NOT to load icons into rez (in the build) but to load them from the file and folder its running from (without input) and then load them into rez.

Are you trying to say "resources" here, or "the .rsc"? "Rez" is a nonsense word here. Please be clear.

2, is there a way to make a file in text that the user can edit (where hosted) so that he/she can add new things eg
(preset)
"item1","item2"
(addon)
"item1","item2","Reditem"
and when the game next starts loads these into a list

Yes, there is. Although abominably slow, ImportText() may be used for this purpose. Or if you like, file2text() can give you a little more fine control over the file format.

3, how do you check if a folder is in the same folder as the byond is running from eg
> if(folder("[folder name]"))
>


I don't quite follow. Can you clarify?

Lummox JR
In response to Lummox JR
Lummox JR wrote:
Zmadpeter wrote:
1, how do you get byond NOT to load icons into rez (in the build) but to load them from the file and folder its running from (without input) and then load them into rez.

Are you trying to say "resources" here, or "the .rsc"? "Rez" is a nonsense word here. Please be clear.

2, is there a way to make a file in text that the user can edit (where hosted) so that he/she can add new things eg
(preset)
"item1","item2"
(addon)
"item1","item2","Reditem"
and when the game next starts loads these into a list

Yes, there is. Although abominably slow, ImportText() may be used for this purpose. Or if you like, file2text() can give you a little more fine control over the file format.

3, how do you check if a folder is in the same folder as the byond is running from eg
> > if(folder("[folder name]"))
> >

I don't quite follow. Can you clarify?

Lummox JR

What I beleive he means is have for example...

mob
player
icon='customicon.dmi'
icon_state="state"

have that but have it that you can customise the 'customicon.dmi' file with its host files in [BYONDINSTALL]/myhub/[gamename]/

And on his txt i beleive he's going in for the input custom items theory like...
item
apple
icon='apple.dmi'

having that in the txt file, then it loads in the item named APPLE from the icon file within the same hosting folder.

I'm not sure if this is doable but I beleive i understand what he is aiming for.