English Amiga Board


Go Back   English Amiga Board > News

 
 
Thread Tools
Old 25 January 2021, 13:29   #41
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,331
The next release of the remake of Ambermoon has solved a bug which I first saw discussed here on EAB in 2013.

Quote:
Originally Posted by prophesore View Post
If you hire and lay off [Gryban] he says that you'll find him in Godsbane but he is not there. Mystical Map does not detect him. This is just a big error."
In Ambermoon Player-Characters data is stored in the AMBR file party_char.amb. This file is a multi-file container with one sub-file per character. Each player-character has a world map index (location) of where they go when you do not recruit them when you meet them or where they go should you release them from your party

The format of the sub-file for each character is described here :

https://github.com/Pyrdacor/Ambermoo.../Characters.md

The world map index field has been named "Character-bit-index"(?!) at offset 0x1C.

Each map has 32 possible characters like NPCs on them. So divide that value by 32 to get the map index. The value for Valdyn is 0x2400 and so his map index is 288. And ta da! This is the tavern in Burnville. Same for Selena. Take 0x22c2 and divide by 32 and you'll get 278 which is the Sylph cave.

Gryban's Character-bit-index is 0x0000 but apparently it should be 0x35c0 (The world map index of Godsbane)

http://eab.abime.net/showpost.php?p=...postcount=535]

Interesting huh? Well I guess not for everyone.

The fix can be back-ported to the Amiga version which uses the same file.

This bug like all others is recorded in technical detail here :

https://docs.google.com/spreadsheets...it?usp=sharing
alexh is offline  
Old 25 January 2021, 14:47   #42
DamienD
Banned
 
DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
Quote:
Originally Posted by alexh View Post
Interesting huh? Well I guess not for everyone.

The fix can be back-ported to the Amiga version which uses the same file.

This bug like all others is recorded in technical detail here :

https://docs.google.com/spreadsheets...it?usp=sharing
It would be awesome if once every bug has been fixed they can all be applied to the Amiga version; floppy disk and hard drive installed
DamienD is offline  
Old 25 January 2021, 17:34   #43
dlfrsilver
CaptainM68K-SPS France
 
dlfrsilver's Avatar
 
Join Date: Dec 2004
Location: Melun nearby Paris/France
Age: 46
Posts: 10,412
Send a message via MSN to dlfrsilver
Quote:
Originally Posted by DamienD View Post
It would be awesome if once every bug has been fixed they can all be applied to the Amiga version; floppy disk and hard drive installed
I fully agree with you.
dlfrsilver is offline  
Old 25 January 2021, 20:02   #44
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,331
Quote:
Originally Posted by DamienD View Post
It would be awesome if once every bug has been fixed they can all be applied to the Amiga version; floppy disk and hard drive installed
The spreadsheet has a column which shows which fixes have been applied in the Meynaf patch. Most are already in there.

The problem with the floppy disk version is that the files once decompressed don't fit back on the disk. The new developer has created what he believes to be an equivalent packer that the depacker in the Amiga exe can decompress but I don't have the time to test.
alexh is offline  
Old 04 February 2021, 08:33   #45
Pyrdacor
Registered User
 
Pyrdacor's Avatar
 
Join Date: Feb 2021
Location: Germany
Posts: 116
Hello guys. Finally I managed to create an account here.

First of all I want to say thank you to all of you who provided valuable information about Ambermoon and its data structures. My current work was based on all of that. I created a github repo just to gather all those information at a central point and store it for the future there: https://github.com/Pyrdacor/Ambermoon

With the help of a bunch of enthusiastic people we managed to reveal even more information.

I am not a Pro regarding Amiga. My strength lies in imperative programming and data analysis I guess. But I will try my best to help making the Amiga versions better as well.

The Ambermoon.net project is quiet advanced already. The next big chunks to implement will be places (merchants, etc), the mystic map interface, camp window, level up window and logic, window for locked doors/chests, day-night-cycle, skies and light and music. Then after some finetuning it should be done. The rest is already working.

The project is open source so if someone wants to join or can provide some information I would really appreciate it.

Since I started the project I dove deep into the data. So I think I have quiet a good understanding of the internals of the data. This includes the data hunks of the executables like AM2_CPU, AM2_BLIT, Ambermoon_intro and Fantasy_intro. I also implemented an Assembly Deploder and a File Deploder (FImp) as well as a Hunk reader to get to the assembly data. This is important to load items, UI graphics, intro graphics, game messages, UI texts and specific palettes.

So if you have any questions about how to fix or track down a specific bug, I might help.

Feel free to contact me here, on github (Issue tracker) or via email: trobt@web.de

Thanks again for keeping Ambermoon alive over all these years.
Pyrdacor is offline  
Old 04 February 2021, 08:46   #46
Pyrdacor
Registered User
 
Pyrdacor's Avatar
 
Join Date: Feb 2021
Location: Germany
Posts: 116
Quote:
Originally Posted by alexh View Post
The world map index field has been named "Character-bit-index"(?!) at offset 0x1C.
If you wonder why I named it this way: The reason is that it is no real "world map index". It is the index of a bit. The savegame stores 32768 of those bits. 32 bits for each map for a total of 1024 possible maps. So the bits for map 288 (Burnville tavern) start at bit index 288*32=9216. So bit 9216 in the savegame would (de)activate the first character on this map, bit 9217 the second character and so on. Valdyn is the first character (data-wise) on that map. So to (de)activate him in Burnville the bit 9216 must be change. 9216 in hex is 0x2400. This is exactly the value at 0x1C in his character data.
Pyrdacor is offline  
Old 04 February 2021, 08:52   #47
Pyrdacor
Registered User
 
Pyrdacor's Avatar
 
Join Date: Feb 2021
Location: Germany
Posts: 116
Quote:
Originally Posted by DamienD View Post
It would be awesome if once every bug has been fixed they can all be applied to the Amiga version; floppy disk and hard drive installed
This is my goal too. Along with finishing the remake of course.
When Ambermoon.net is in a state where it won't consume so much time, I will work on some more editors and tools to ease bugfixing and/or improving the data.

I also want to create an optional advanced version with better balancing and some other improvements that can be done purely data-based. This could be based on the bugfixed version then. And localization is another point. Would be awesome if we manage to create Ambermoon for more languages. The tricky part about languages will be the assemblies which contain a lot of messages and UI texts too. But we might find a solution for that as well.
Pyrdacor is offline  
Old 04 February 2021, 10:55   #48
DamienD
Banned
 
DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
Heya Pyrdacor,

Welcome to EAB

Firstly, well done with all this

Quote:
Originally Posted by Pyrdacor View Post
This is my goal too. Along with finishing the remake of course.
When Ambermoon.net is in a state where it won't consume so much time, I will work on some more editors and tools to ease bugfixing and/or improving the data.
That would indeed be awesome, cheers.
DamienD is offline  
Old 04 February 2021, 11:11   #49
Pyrdacor
Registered User
 
Pyrdacor's Avatar
 
Join Date: Feb 2021
Location: Germany
Posts: 116
Quote:
Originally Posted by DamienD View Post
Heya Pyrdacor,

Welcome to EAB

Firstly, well done with all this

Thanks a lot. Glad to be here.
Pyrdacor is offline  
Old 04 February 2021, 12:36   #50
Valken
Registered User
 
Join Date: Feb 2009
Location: Amiga
Posts: 465
Welcome to EAB Pyrdacor!

I grew up with RPG's, especially 3D dungeon raid types which lead me to 3D FPS! Look forward to your work and updates!
Valken is offline  
Old 04 February 2021, 18:49   #51
Pyrdacor
Registered User
 
Pyrdacor's Avatar
 
Join Date: Feb 2021
Location: Germany
Posts: 116
@Valken: Thanks!

@Alex: About the bug with wrong map flags on two lyramion world maps. You can easily get the coordinates from the map index. There are 16x16 lyramion world maps. Each is 50x50 tiles in size.

So the column of the map is (MapIndex-1) modulo 16. The row is (MapIndex-1) divided by 16 (rounded down).

To get the offset in tiles (in-game world coordinate) you have to multiply the map column and row by 50.

So it affected maps 00D and 094.

00D is 13. MapColumn = 12 mod 16 which is 12. MapRow = floor(12/16) which is 0.

So x is 12*50=600, y is 0*50=0.

Same for 094 which is 148.

x = (147 mod 16)*50 = 150
y = floor(147 / 16)*50 = 450

Edit: Oh I almost forgot. Coordinates in Ambermoon are 1-based.

So the final coordinates are:

Map 00D: 601, 1
Map 094: 151, 451

Last edited by Pyrdacor; 04 February 2021 at 18:57.
Pyrdacor is offline  
Old 14 March 2021, 22:41   #52
Nobby_UK
Registered User
 
Nobby_UK's Avatar
 
Join Date: Jul 2013
Location: Liverpool
Posts: 2,595
70 odd Meg for a 9 Disk game ???
Nobby_UK is offline  
Old 14 March 2021, 22:46   #53
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,331
Quote:
Originally Posted by Nobby_UK View Post
70 odd Meg for a 9 Disk game ???
How much of that will be the Windows C# redistributable libraries etc.?
alexh is offline  
Old 27 March 2021, 15:47   #54
Pyrdacor
Registered User
 
Pyrdacor's Avatar
 
Join Date: Feb 2021
Location: Germany
Posts: 116
The problem is the NET framework. There are versions of around 20~30 MB now that require NET framework to be installed beforehand.
Pyrdacor is offline  
Old 27 March 2021, 15:59   #55
Pyrdacor
Registered User
 
Pyrdacor's Avatar
 
Join Date: Feb 2021
Location: Germany
Posts: 116
And it contains 2 languages of the game. Including the Amiga assemblies as they contain texts and graphics. So without all the stuff the real code is only a few MB in size.

Last edited by Pyrdacor; 29 March 2021 at 14:17.
Pyrdacor is offline  
Old 24 June 2021, 10:04   #56
Pyrdacor
Registered User
 
Pyrdacor's Avatar
 
Join Date: Feb 2021
Location: Germany
Posts: 116
FYI: I started fixing the original game data (english mostly but also german). I continue my work based on the meynaf english patch and for german on AMINET + Slothsoft patch.

I already fixed most stuff that was already fixed somewhere by someone. This includes fixing the door in Sansrie's tunnel, fixing the golem that was flagged as "PartyMember", fixing Reg hill giant's missing boss flag, fixed Gryban's spawn location and many text issues. I also fixed all wrongly used occurences of HE and HIS in the english version and replaced it by ~SEX1~ or ~SEX2~.

Now I started to fix previously unfixed bugs. I already fixed two corrupted wind gates which look stange after repairing.

So I guess in a few days I will have fixed most of the reported bugs besides code bugs (like crashes that are not data related).

I will release a new game data version for german and english soon.
Pyrdacor is offline  
Old 24 June 2021, 11:14   #57
Neil79
Autistic 'n IRN!
 
Join Date: Jul 2012
Location: -
Posts: 2,978
How far are we along to completion of said project?
Neil79 is offline  
Old 24 June 2021, 12:02   #58
Pyrdacor
Registered User
 
Pyrdacor's Avatar
 
Join Date: Feb 2021
Location: Germany
Posts: 116
There's only bugfixing left. I want the first release to be completable without crashes or major issues.

I can't tell for sure but it won't take very long I guess.

----------

Just added the missing teleporter in gadlon (stairs back to the lowest level).
Pyrdacor is offline  
Old 24 June 2021, 15:08   #59
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,331
The bug reports (and fixes) by Myself, Michael Bonisch, MetalliC, Hexxae, Meynaf, prophesore, st-h, Daniel Shultz, Simone Bevilacqua, Kermit, Thallyrion, and Pyrdacor are all being examined by Pyrdacor to be turned into two new datasets (English/German) for Ambermoon.net

The bonus is these two fixed datasets will be able to be used by the Amiga Versions too.

Pyrdacor now knows the internal data structures as well as anyone ever did, probably better than the original authors did.

Bugs that were reported 20 years ago but no-one knew what caused them, or how to fix them are being fixed in minutes. Kudos to Pyrdacor.

Last edited by alexh; 24 June 2021 at 15:23.
alexh is offline  
Old 24 June 2021, 15:39   #60
pixSCN
Registered User
 
Join Date: Mar 2016
Location: Norway
Posts: 23
Quote:
Originally Posted by Pyrdacor View Post
There's only bugfixing left. I want the first release to be completable without crashes or major issues.

I can't tell for sure but it won't take very long I guess.

----------

Just added the missing teleporter in gadlon (stairs back to the lowest level).
Thanks for making a rewrite of one of my favourite games!

Just a quick question, though. Is it possible, somehow, to run the fullscreen mode in the native desktop resolution? Seems like it changes the resolution when I press f11. Not a big problem, but it makes all my programs rescale and jump around, from one screen to another (I run on two screens).
pixSCN is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Double Dragon remake progress update Brick Nash Amiga scene 100 25 April 2019 16:19
return to the roots settlers 2 remake open source turrican3 support.Games 4 28 July 2014 11:54
CaesarIA - Caesar III new open source remake Neil79 Retrogaming General Discussion 2 17 April 2014 14:07
A remake/sequel of Moonstone is in the progress! Ironclaw Amiga scene 13 22 July 2008 18:17
Trick Or Treat Remake - Work in Progress ant512 Amiga scene 15 16 November 2004 17:25

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 13:03.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.19133 seconds with 14 queries