|
OpenClaw |
Posted on: 6/28 18:27
#1 |
---|---|---|
Just popping in
![]() ![]() Joined:
2006/11/27 20:35 From Poland
Posts: 114
|
|
|
|
Re: OpenClaw |
Posted on: 6/29 0:51
#2 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/1/26 21:48 From New Zealand
Posts: 2196
|
@mufa
The dependencies sound manageable: - SDL2 Libraries (SDL2, SDL_Image, SDL_TTF, SDL_Mixer, SDL2_Gfx) for graphics, input, font and audio - Box2D Library for Physics - Tinyxml library for data-driven approach Hans |
|
_________________
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. https://keasigmadelta.com/ - more of my work |
||
|
Re: OpenClaw |
Posted on: 7/3 21:13
#3 |
---|---|---|
Just popping in
![]() ![]() Joined:
2016/5/28 13:35 From The Netherlands
Posts: 55
|
We're off to a good start
Captain Claw already has an official AmigaOS appearance in Shogo M.A.D ![]() |
|
|
Re: OpenClaw |
Posted on: 7/7 10:45
#4 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5536
|
@mufa
Loosing a day and was able to build binary almost with no code changes (just few fixes because of gcc differences and makefiles's compiling/linking things) ![]() I can see also in the game's code big endian ifdefs, so there is chances that after fixing amiga patches and co it may works, but of course we can't be sure that loading of data file big endian aware. Hope to check it a bit later today. |
|
|
Re: OpenClaw |
Posted on: 7/7 13:22
#5 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5536
|
As expected it fail to load data file (CLAW.REZ), which is on 99% probabaly because of endianes.
Game come with some small "libwap" library, which deal with loading of .REZ datafiles, and it just return NULL (meaning invalid data file) when calling WAP_LoadRezArchive(), which is just:
RezArchive* WAP_LoadRezArchive(const char* rezFilePath)
So somewhere in that function it fail (probabaly reading wrongly structures because of endianes), and return NULL. If anyone can/want to help with rewriting it to big-endian: help will be appreacated. There is relevant source file: https://github.com/pjasicek/OpenClaw/b ... p/RezArchiveFile.cpp#L602 |
|
|
Re: OpenClaw |
Posted on: 7/7 17:30
#6 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5536
|
Asking author about, he says that yeah, big-endian wasn't consider so it is.
I tried to replace in that WAP_LoadRezArchive, that part:
// Read rez file version
On that one:
// Read rez file version
But it only make it freezes. Probabaly that 127 bytes header need adjustements as well as some other stuff. Authour through say, that probably what would solve this would be making FileRead and all other reading generics to be endian agnostic. But he don't have any device which has big endian, so there would be no way for him to test it at the moment :( In other words, someone should help there with big-endian fixes, anyone ?:) At moment i only find one generic reading function:
template<typename T>
Not sure how to make it endian agnostic, so help need it. |
|
|
Re: OpenClaw |
Posted on: 7/8 6:24
#7 |
---|---|---|
Not too shy to talk
![]() ![]() Joined:
2011/6/3 12:49 Posts: 252
|
Hello
The whole rezarchive need to be reordered I whould do a file search containing "rootDirectory" to found the source whith his définition Aldo the structure is read a part after a part So must reorder all fields from .version in the 127 bytes range Then all fields from .offset for 131 bytes From .size for 135 Etc... |
|
|
Re: OpenClaw |
Posted on: 7/11 12:33
#8 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 11:31 From Russia
Posts: 5536
|
@all
I progress futher with endian fixes, so step by step hope to have something. At least now i almost fixed endian issue with zip file loading. |
|
|
Re: OpenClaw |
Posted on: 7/11 19:08
#9 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/29 8:09 From Lyon, France
Posts: 1007
|
@kas1e
Nice. thanks for keeping us informed ![]() |
|
_________________
-- AmigaONE X1000 1,8Ghz, 2GB, Sapphire Radeon HD 7700, with Amiga OS 4.1 FE http://www.amiga-ng.org |
||