RogueAMaze for Adams Art
Community Forums/Showcase/RogueAMaze for Adams Art
| ||
https://numbergamer8.itch.io/rogueamaze I stripped out all the gaff, and created a rogue, so you can just put art in if you wanted to Adam, I simplified like you said, it took wey to long to create this from the other game but its there if you want to make it better. it takes all the doors stairs and items in transparent pngs and superimposes them ontop of each other in main viewer, its a one cell view. the base tiles is one of 150 , if you want same image just duplicate, but for flavour I wanted art to be a factor in the game its simple and addictive. |
| ||
it reads one text file let me know if it works, because I can get rid of it if nessassary |
| ||
brl-streamline-readerror |
| ||
how about posting the bit of code you have that reads the data? |
| ||
Im doing a minimap for it, and Im about to rip out the last txt reading bit |
| ||
values4 = ReadFile(".\art4game\vilans.txt") z1$ = ReadLine$( values4 ) z2$ = ReadLine$( values4 ) z3$ = ReadLine$( values4 ) z4$ = ReadLine$( values4 ) CloseFile( values4 ) I have deleted it now, don't worry, but it means every text file I read wont work on your mac |
| ||
https://numbergamer8.itch.io/rogueamaze ok Ive ripped out every file not needed, and removed txt file reads altogether, Ive made a minimap, In fact its finished, just art to add If this dosnt work adam it never will, |
| ||
I can tell you what is wrong immediately. The file name. first off ./ doesn't mean anything to a mac, you need ../ which goes to the parent folder A mac.app is NOT a file, it is a folder structure: myApp.App +Contents +macOS myApp +Resources So to reference anything you need to reverse your way through the folder structure On a mac - static resource should really be kept in the Resources folder. Which lives inside Contents to reference it you would use: "../resources/textures/background2.png" Which is: ../ back one folder, resources/ into Resources textures/ into textures and finally the title background2.png now. if you were using a folder outside of app structure. you would need ../../../art4game\vilans.txt The other thing you MUST take care of is different OS system. if you had this on a mac it would work, but not on windows. you would need a slightly different file name, I don't use linux, but I'm sure its the same or different again. Here's some code that deals nicely with both windows and mac: ?win32 Global App_SupportDir:String = ExtractDir(AppFile)+"/Resources/" ?MacOs Global App_SupportDir:String = GetAppSupportDir() ? |
| ||
your super intelligent, but don't know how it runs on my mac. |
| ||
ok I replaced all .\ with ../../../ but it did not work on my mac, but I compiled it , so see if it now runs on yours, its the file 72mac.app version |
| ||
do I need the art4game\vilans.txt changed to a / aswell |
| ||
get the 72B version I just replaced 72A because I now used all / instead of the \ above, I cant test this it wont run on my old mac, and the current blitz compiler version wont run on my mac, so it seems there are old macs and new ones |
| ||
BlitzMax should replace "\" automatically with "/" -> FixPath() does it, and it is called in ExtractDir() and other file utilities. My TVTower Mac-binaries use the same paths than my win32 and linux variants. As a simple wrapper just create CheckFile(uri:string) function which checks for the existence of a file and logs missing ones. bye Ron |
| ||
Thx Derron, you are very good at this stuff. its strange because I'm using windows paths and it compiles and runs on my Mac & my cousins. |
| ||
what is your mac? |
| ||
Its an intel iMac about 4 years old with 2gb ram. but don't worry adam I'm not bothering with mac stuff, I use mostly windows, My app is a good springboard to make rogue apps I'm quite pleased with it. Happy xmas Adam and you Derron happy xmas |
| ||
and you too :) |