Page 1 of 1

It is possible with PureBasic?

Posted: Tue Jan 11, 2005 8:49 am
by Kaiser
Hello! :) how is everyone? I've came across this cool game named Furcadia (which is still on, I know, some of you may think it's a gay game or something like that, but hey, everyone has their likings). Anyways, I've wanted to edit the FSH files that are used for keeping item files (basically, simple ZIP files, or also, like the WAD files of Quake and most recently, Half-Life, or PAK files, you get the idea) for editing them with PureBasic, but I'm not sure if it's possible. I have the specifications of the file here:

Code: Select all

FSH Fileformat (note: lots of Furcadia's .FSHs don't conform to this standard,
                which is bloody useful. Especially r.e. the chunk sizes):

File:
unsigned short                     - chunk count
chunk count lots of unsigned short - chunk sizes in bytes
chunk count lots of chunk_structs  - chunks

chunk_struct:
unsigned byte         - width of entry
unsigned byte         - height of entry
signed byte           - X offset of entry
signed byte           - Y offset of entry (though when drawing bottom height + y offset is forced to be less than bottom of floor tile)
width * height bytes  - entries (refer to palette in PCX)
                        Note, stored as a windows bitmap, ie.
                        reflected (last row stored first).
But I'm not sure if that level of file accessing and editing is possible in PureBaisic, the file also has an image inside and such, so I wonder if it's possible to also grab it from the file. I'm jsut wondering if it's possible, and, if possible, an example won't come too bad, in fact, it will be REALLY useful if any of you figure it out at least how to read and/or edit them :).

[edit]

Well for not posting more, I'll just put this last-minute question I have in this same post :).

How can I know the link clicked in a WebGadget button? for example, if someone clicks a link, for download, how can I block the download and copy the URL to the clipboard or to some variable?

Posted: Wed Jan 12, 2005 11:29 pm
by Kaiser
Ummmmm...... is someone alive out there? :P

Posted: Wed Jan 12, 2005 11:50 pm
by aaron
Its possible and 'that level of file accessing and editing' is definitely do-able. The trick is that you'll have to figure out how to break apart the files yourself, as there isn't any general interest in it. Sorry.

Posted: Thu Jan 13, 2005 8:03 pm
by Psychophanta
PB is multi-proposal language. All is posible with it :P

Posted: Sat Jan 15, 2005 1:58 am
by Kaiser
Yay! I might get on work about that then... just need the functions to read the file and such.. just discovered it also supports Windows API's so it's good :D but what about my other question? it's possible also... and anyone knows how to? :-/
How can I know the link clicked in a WebGadget button? for example, if someone clicks a link, for download, how can I block the download and copy the URL to the clipboard or to some variable?

Posted: Mon Jan 17, 2005 8:52 am
by Kaiser
Um.. anyone? :(