Recent Posts

Pages: 1 ... 6 7 [8] 9 10
General Discussion / Re: Multiplayer anyone?
« Last post by peewee_RotA on October 24, 2016, 08:44:11 AM »

I'll polish it up as time goes on.
Editing A&A / Re: Questions regarding codebase
« Last post by peewee_RotA on October 24, 2016, 08:35:36 AM »
If you're running to SDL2 related issues, I kind of put that off in the windows version, but this was a handly explanation of what was wrong that way:

If you need any help with an OSX port, somebody started one a few years ago. Might have some useful tidbits:

Also, Great work so far. Keeep it up!
Editing A&A / Re: Questions regarding codebase
« Last post by Emre on October 23, 2016, 08:46:16 AM »
Figured out the issue. It was a combination of late night programming and file size issues. I was allocating memory for resource structs based on the information coming from file, which was (obviously, in hindsight) wrong, since it was built using another platform.

Oh boy. :D

Edit: Aaand hacked something together. Simple type mistake cost me a couple of hours though.

Edit 2: Somehow the pictures are not being displayed. I can see them being loaded by comparing the hex headers with SLADE, but somehow they are not drawn...

Published my fork at this address:

Edit 3: Got it somewhat working. Keyboard doesn't really work at the moment. Mouse is barely working.

It was caused by (presumably) very old GNU C compiler-specific setting in the code where an array was initialized with one element instead of being empty, causing some memory addresses to shift by one. Therefore, if a picture was 320x200, it would become 0x320, which means no picture. GCC was silently passing that flag into the compilation.

Now character creation fails with memory corruption errors again. I think I have found the cause:

This puts a 8-byte pointer to the sixth byte of a 10 byte record, overwriting the next record. Might have to rewrite sections of this, but not sure if I will see this problem in other places. There must be a way for a general solution for this kind of issues.
General Discussion / Re: Multiplayer anyone?
« Last post by BeatCrazed on October 23, 2016, 08:18:53 AM »
Making a discord channel is easy enough, and it might just bring the community together a bit. I'd say it's totally worth doing.
Editing A&A / Re: Questions regarding codebase
« Last post by Emre on October 22, 2016, 08:50:05 PM »
Managed to work around the problem by implementing a custom deserializer for resources. Looks like I am getting them correctly now.

I heard the first thunder sound before crash (still no graphics :D) but I am getting non-deterministic SIGABRT crashes now. Something is off regarding memory stuff, have to figure it out.

I have also seen that some pointers are being cast to 32 bit integers and then being passed to functions, only to be converted back to pointers again. I think this won't work in 64 bit systems as the size of a pointer should be 8 bytes... Will have to change function signatures I guess.

I am afraid of introducing some bugs that I will have a very hard time of solving, but it does not work now anyway.
Editing A&A / Re: Peewee Mod Fork 1.3.1
« Last post by peewee_RotA on October 22, 2016, 06:33:19 AM »
Interesting. I must just be really unlucky.  8)

The class description and palette issues for new player photos is known. I put them off because I had planned on address both issues by helping the creators with a rewrite of the game some time ago, however I never had much luck. Always had problems with really low level graphics issues and file reading issues.

In the back of my mind, I'm looking at the .NET core libraries and wondering if there's a really quick path forward there for a cross platform solution.
Editing A&A / Re: Peewee Mod Fork 1.3.1
« Last post by Emre on October 21, 2016, 06:16:07 AM »
Strangely the wolves did not hit me back at all. I think I have "farmed" around 10-15 wolves. None of them did anything in return.

Another bug report would be the class descriptions for new classes in the new character creation screen, the one you see armor proficiencies and so on. There seems to be an issue with newlines, so the lines are concatenated somehow.
Editing A&A / Re: Questions regarding codebase
« Last post by Emre on October 21, 2016, 06:13:41 AM »
Yep. I hope he sees this thread.

I am basically porting A&A to OS X at the moment. Almost everything is already done by Lysle, but some issues remained (e.g. platform specific functions, includes, compiler shenanigans). I managed to compile it after pulling an all-nighter. Now it segfaults due to not being able to load resources properly.

I am also trying to target SDL2 at the moment, but since I could not see any graphics so far, I do not know if I succeeded setting up the graphics surfaces and such.

Also, I think I will be refactoring a lot of stuff. Currently moved the data from the Exe folder to some separate folders and managed to get a CMake build up for OS X. I will need to add platform-specific settings for Linux (which should be easy after OS X, it's *nix after all) and for Windows.

I had to disable some sections of the code (e.g. SOS library) as they seem to be hard to port. I was almost stuck with the assembly implementation of graphics functions as well since it seems to be MASM, but gratefully there were C alternatives using a compiler flag. Overall it's going better than I expected. I hope to provide some results soon. My only concern is the divergence of graphics branch and your mod fork with my changes, but I guess I can apply the changes over my edition.

Edit: To clarify the problem above, I am using almost completely vanilla RESOURCE.C files. The game crashes while trying to load the fonts from SAMPLE.RES.
Editing A&A / Re: Questions regarding codebase
« Last post by peewee_RotA on October 21, 2016, 05:59:31 AM »
This would be a great question for LysleShields. I've not tackled anything with the RES files. But he has mentioned there being a RES packing program lying around for creating them. That might help determine what the extra bits of data are.

Last mentioned here:
Editing A&A / Re: Peewee Mod Fork 1.3.1
« Last post by peewee_RotA on October 21, 2016, 05:54:06 AM »
Good catch on the names.

I'll have to test those out.

Yes, it's possible to gain extra xp by killing the wolves, but I never really worked on that because every time I tried to abuse that, I got wrecked by the wolves. I'd only get away with a couple pot shots from time to time. I did sometimes get a little XP boost by accident when summoning a bunch of minions on a large monster, and blasting the group with the acid attack, however that's a giant MP drain. So it turned into a method to turn relatively expensive scrolls of mana into XP. It might be a super easy fix though. I'll have to double check it.
Pages: 1 ... 6 7 [8] 9 10