W
whale_cancer
Guest
Hello!
I am getting the following error in the compiler window:
The .png files in question are generated by another part of my program, so it seems like I should have read/write permission in that location. That being said, I don't know why it is even trying to save the .pngs? I am just trying to turn them into sprites.
The .ini file in question:
And my actual code:
Any help appreciated.
I am getting the following error in the compiler window:
Code:
Error! not allowing save with filename 'C:\Users\Whale Cancer\AppData\Local\gm_ttt_18915\gm_ttt_50081\Zero\Up.png'
Adding C:\Users\Whale Cancer\AppData\Local\gm_ttt_18915\gm_ttt_50081\Zero\Up.png as sprite # -1
Error! not allowing save with filename 'C:\Users\Whale Cancer\AppData\Local\gm_ttt_18915\gm_ttt_50081\Zero\Left.png'
Error! not allowing save with filename 'C:\Users\Whale Cancer\AppData\Local\gm_ttt_18915\gm_ttt_50081\Zero\Down.png'
Error! not allowing save with filename 'C:\Users\Whale Cancer\AppData\Local\gm_ttt_18915\gm_ttt_50081\Zero\Right.png'
The .ini file in question:
Code:
[Sprites]
Up="C:\Users\Whale Cancer\AppData\Local\gm_ttt_18915\gm_ttt_50081\Zero\Up.png"
Right="C:\Users\Whale Cancer\AppData\Local\gm_ttt_18915\gm_ttt_50081\Zero\Right.png"
Down="C:\Users\Whale Cancer\AppData\Local\gm_ttt_18915\gm_ttt_50081\Zero\Down.png"
Left="C:\Users\Whale Cancer\AppData\Local\gm_ttt_18915\gm_ttt_50081\Zero\Left.png"
Code:
//Set Sprites
ini_open('Zero/Config.ini')
tS = ini_read_string('Sprites','Up', '')
sprite_up = sprite_add(tS, 4, false, false, 0, 2);
show_debug_message('Adding '+tS+' as sprite # '+string(sprite_up));
tS = ini_read_string('Sprites','Left', '')
sprite_left = sprite_add(tS, 4, false, false, 0, 2);
tS = ini_read_string('Sprites','Down', '')
sprite_down = sprite_add(tS, 4, false, false, 0, 2);
tS = ini_read_string('Sprites','Right', '')
sprite_right = sprite_add(tS, 4, false, false, 0, 2);
ini_close();