It is possible with PureBasic?

Everything else that doesn't fall into one of the other PB categories.
Kaiser
Enthusiast
Enthusiast
Posts: 118
Joined: Tue Jan 11, 2005 8:36 am

It is possible with PureBasic?

Post 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?
Kaiser
Enthusiast
Enthusiast
Posts: 118
Joined: Tue Jan 11, 2005 8:36 am

Post by Kaiser »

Ummmmm...... is someone alive out there? :P
aaron
Enthusiast
Enthusiast
Posts: 267
Joined: Mon Apr 19, 2004 3:04 am
Location: Canada
Contact:

Post 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.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

PB is multi-proposal language. All is posible with it :P
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Kaiser
Enthusiast
Enthusiast
Posts: 118
Joined: Tue Jan 11, 2005 8:36 am

Post 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?
Kaiser
Enthusiast
Enthusiast
Posts: 118
Joined: Tue Jan 11, 2005 8:36 am

Post by Kaiser »

Um.. anyone? :(
Post Reply