English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General > Coders. Releases

 
 
Thread Tools
Old 05 December 2023, 00:13   #3621
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,667
You can always delete game.prefs if it's messed up.
Karlos is offline  
Old 05 December 2023, 00:24   #3622
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,667
Updated - The pixel height mode is only applied from the prefs if the display is RTG.

Fixing for AGA modes will require a bit more work due to the need to set up and tear down the copper in the right places.
Karlos is offline  
Old 05 December 2023, 00:24   #3623
abu_the_monkey
Registered User
 
Join Date: Oct 2020
Location: Bicester
Posts: 2,056
excellent
abu_the_monkey is offline  
Old 05 December 2023, 00:25   #3624
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,667
Let me know if you run into anything else.
Karlos is offline  
Old 05 December 2023, 00:28   #3625
abu_the_monkey
Registered User
 
Join Date: Oct 2020
Location: Bicester
Posts: 2,056
will do
abu_the_monkey is offline  
Old 05 December 2023, 00:28   #3626
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,667
I wanted to get back to the PVS branch soon as it has a feature that will help me generate per level data files from the game itself. The lowest hanging fruit here is a map that says which zones must skip sky rendering. The mechanism to tag the zone during gameplay exists already, it just needs the ability to dump the data at the end and reload it as part of the level data set.
Karlos is offline  
Old 05 December 2023, 20:15   #3627
Angus
Amiga Games Database
 
Angus's Avatar
 
Join Date: Jun 2006
Location: South West England
Posts: 1,305
Quote:
Originally Posted by Karlos View Post
Yeah - it's just the code. I can push the updated exe to my mod branch - that might be the easiest way.

https://github.com/0xABADCAFE/karlos...sign/Game/bin/

.
I must be stoopid. I went, I looked, I clicked - I found a download icon, clicked on that, nothing downloaded.
Angus is offline  
Old 05 December 2023, 20:28   #3628
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,667
Quote:
Originally Posted by Angus View Post
I must be stoopid. I went, I looked, I clicked - I found a download icon, clicked on that, nothing downloaded.
Don't worry. I've added them to the mod and merged, so if you download that,.they are now included.

If you right click on the file names on that GitHub page can you not choose to download the link? Those are the binaries.
Karlos is offline  
Old 05 December 2023, 21:06   #3629
abu_the_monkey
Registered User
 
Join Date: Oct 2020
Location: Bicester
Posts: 2,056
well it must be catching cos I went to build the latest from pippers main and got the following

Code:
m68k-amigaos-gcc -m68020-60 -mtune=68030 -noixemul -g -ggdb -O3 -c c/game_preferences.c -o c/game_preferences.o
c/game_preferences.c:4:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_Persisted[];
        ^~~~~
c/game_preferences.c:5:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_PersistedEnd[];
        ^~~~~
c/game_preferences.c:7:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_FullScreen;
        ^~~~~
c/game_preferences.c:8:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_PixelMode;
        ^~~~~
c/game_preferences.c:9:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_VertMargin;
        ^~~~~
c/game_preferences.c:10:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_SimpleLighting;
        ^~~~~
c/game_preferences.c:11:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_FPSLimit;
        ^~~~~
c/game_preferences.c:12:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_DynamicLights;
        ^~~~~
c/game_preferences.c:13:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_RenderQuality;
        ^~~~~
c/game_preferences.c:15:8: error: unknown type name 'UBYTE'
 extern UBYTE Vid_FullScreenTemp_b;
        ^~~~~
c/game_preferences.c:16:8: error: unknown type name 'UBYTE'
 extern UBYTE Draw_ForceSimpleWalls_b;
        ^~~~~
c/game_preferences.c:17:8: error: unknown type name 'UBYTE'
 extern UBYTE Draw_GoodRender_b;
        ^~~~~
c/game_preferences.c:18:8: error: unknown type name 'UBYTE'
 extern UBYTE Anim_LightingEnabled_b;
        ^~~~~
c/game_preferences.c:19:8: error: unknown type name 'LONG'
 extern LONG  Vid_FPSLimit_l;
        ^~~~
c/game_preferences.c:20:8: error: unknown type name 'WORD'
 extern WORD  Vid_LetterBoxMarginHeight_w;
        ^~~~
c/game_preferences.c: In function 'Game_ApplyPreferences':
c/game_preferences.c:25:35: error: 'Vid_FullScreen_b' undeclared (first use in this function)
     Vid_FullScreenTemp_b        = Vid_FullScreen_b = Prefs_FullScreen;
                                   ^~~~~~~~~~~~~~~~
c/game_preferences.c:25:35: note: each undeclared identifier is reported only once for each function it appears in
c/game_preferences.c:26:9: error: 'Vid_isRTG' undeclared (first use in this function)
     if (Vid_isRTG) {
         ^~~~~~~~~
c/game_preferences.c:27:9: error: 'Vid_DoubleHeight_b' undeclared (first use in this function)
         Vid_DoubleHeight_b          = Prefs_PixelMode;
         ^~~~~~~~~~~~~~~~~~
c/game_preferences.c: In function 'Game_LoadPreferences':
c/game_preferences.c:37:5: error: unknown type name 'BPTR'
     BPTR gamePrefsFH = Open(GAME_PREFS_PATH, MODE_OLDFILE);
     ^~~~
c/game_preferences.c:37:24: warning: implicit declaration of function 'Open' [-Wimplicit-function-declaration]
     BPTR gamePrefsFH = Open(GAME_PREFS_PATH, MODE_OLDFILE);
                        ^~~~
c/game_preferences.c:37:29: error: 'GAME_PREFS_PATH' undeclared (first use in this function)
     BPTR gamePrefsFH = Open(GAME_PREFS_PATH, MODE_OLDFILE);
                             ^~~~~~~~~~~~~~~
c/game_preferences.c:37:46: error: 'MODE_OLDFILE' undeclared (first use in this function)
     BPTR gamePrefsFH = Open(GAME_PREFS_PATH, MODE_OLDFILE);
                                              ^~~~~~~~~~~~
c/game_preferences.c:38:9: error: 'DOSFALSE' undeclared (first use in this function)
     if (DOSFALSE == gamePrefsFH) {
         ^~~~~~~~
c/game_preferences.c:41:5: warning: implicit declaration of function 'Read' [-Wimplicit-function-declaration]
     Read(gamePrefsFH, Prefs_Persisted, (Prefs_PersistedEnd - Prefs_Persisted));
     ^~~~
c/game_preferences.c:42:5: warning: implicit declaration of function 'Close' [-Wimplicit-function-declaration]
     Close(gamePrefsFH);
     ^~~~~
c/game_preferences.c: In function 'Game_SavePreferences':
c/game_preferences.c:47:5: error: unknown type name 'BPTR'
     BPTR gamePrefsFH = Open(GAME_PREFS_PATH, MODE_READWRITE);
     ^~~~
c/game_preferences.c:47:29: error: 'GAME_PREFS_PATH' undeclared (first use in this function)
     BPTR gamePrefsFH = Open(GAME_PREFS_PATH, MODE_READWRITE);
                             ^~~~~~~~~~~~~~~
c/game_preferences.c:47:46: error: 'MODE_READWRITE' undeclared (first use in this function)
     BPTR gamePrefsFH = Open(GAME_PREFS_PATH, MODE_READWRITE);
                                              ^~~~~~~~~~~~~~
c/game_preferences.c:48:9: error: 'DOSFALSE' undeclared (first use in this function)
     if (DOSFALSE == gamePrefsFH) {
         ^~~~~~~~
c/game_preferences.c:52:28: error: 'Vid_FullScreen_b' undeclared (first use in this function)
     Prefs_FullScreen     = Vid_FullScreen_b;
                            ^~~~~~~~~~~~~~~~
c/game_preferences.c:53:28: error: 'Vid_DoubleHeight_b' undeclared (first use in this function)
     Prefs_PixelMode      = Vid_DoubleHeight_b;
                            ^~~~~~~~~~~~~~~~~~
c/game_preferences.c:55:29: error: 'UBYTE' undeclared (first use in this function)
     Prefs_FPSLimit       = (UBYTE)Vid_FPSLimit_l;
                             ^~~~~
c/game_preferences.c:55:35: error: expected ';' before 'Vid_FPSLimit_l'
     Prefs_FPSLimit       = (UBYTE)Vid_FPSLimit_l;
                                   ^~~~~~~~~~~~~~
c/game_preferences.c:56:35: error: expected ';' before 'Vid_LetterBoxMarginHeight_w'
     Prefs_VertMargin     = (UBYTE)Vid_LetterBoxMarginHeight_w;
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
c/game_preferences.c:60:5: warning: implicit declaration of function 'Write' [-Wimplicit-function-declaration]
     Write(gamePrefsFH, Prefs_Persisted, (Prefs_PersistedEnd - Prefs_Persisted));
     ^~~~~
make: *** [Makefile:61: c/game_preferences.o] Error 1
what have I forgotten to do this time
abu_the_monkey is offline  
Old 05 December 2023, 21:19   #3630
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,667
Quote:
Originally Posted by abu_the_monkey View Post
well it must be catching cos I went to build the latest from pippers main and got the following

Code:
m68k-amigaos-gcc -m68020-60 -mtune=68030 -noixemul -g -ggdb -O3 -c c/game_preferences.c -o c/game_preferences.o
c/game_preferences.c:4:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_Persisted[];
        ^~~~~
c/game_preferences.c:5:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_PersistedEnd[];
        ^~~~~
c/game_preferences.c:7:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_FullScreen;
        ^~~~~
c/game_preferences.c:8:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_PixelMode;
        ^~~~~
c/game_preferences.c:9:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_VertMargin;
        ^~~~~
c/game_preferences.c:10:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_SimpleLighting;
        ^~~~~
c/game_preferences.c:11:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_FPSLimit;
        ^~~~~
c/game_preferences.c:12:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_DynamicLights;
        ^~~~~
c/game_preferences.c:13:8: error: unknown type name 'UBYTE'
 extern UBYTE Prefs_RenderQuality;
        ^~~~~
c/game_preferences.c:15:8: error: unknown type name 'UBYTE'
 extern UBYTE Vid_FullScreenTemp_b;
        ^~~~~
c/game_preferences.c:16:8: error: unknown type name 'UBYTE'
 extern UBYTE Draw_ForceSimpleWalls_b;
        ^~~~~
c/game_preferences.c:17:8: error: unknown type name 'UBYTE'
 extern UBYTE Draw_GoodRender_b;
        ^~~~~
c/game_preferences.c:18:8: error: unknown type name 'UBYTE'
 extern UBYTE Anim_LightingEnabled_b;
        ^~~~~
c/game_preferences.c:19:8: error: unknown type name 'LONG'
 extern LONG  Vid_FPSLimit_l;
        ^~~~
c/game_preferences.c:20:8: error: unknown type name 'WORD'
 extern WORD  Vid_LetterBoxMarginHeight_w;
        ^~~~
c/game_preferences.c: In function 'Game_ApplyPreferences':
c/game_preferences.c:25:35: error: 'Vid_FullScreen_b' undeclared (first use in this function)
     Vid_FullScreenTemp_b        = Vid_FullScreen_b = Prefs_FullScreen;
                                   ^~~~~~~~~~~~~~~~
c/game_preferences.c:25:35: note: each undeclared identifier is reported only once for each function it appears in
c/game_preferences.c:26:9: error: 'Vid_isRTG' undeclared (first use in this function)
     if (Vid_isRTG) {
         ^~~~~~~~~
c/game_preferences.c:27:9: error: 'Vid_DoubleHeight_b' undeclared (first use in this function)
         Vid_DoubleHeight_b          = Prefs_PixelMode;
         ^~~~~~~~~~~~~~~~~~
c/game_preferences.c: In function 'Game_LoadPreferences':
c/game_preferences.c:37:5: error: unknown type name 'BPTR'
     BPTR gamePrefsFH = Open(GAME_PREFS_PATH, MODE_OLDFILE);
     ^~~~
c/game_preferences.c:37:24: warning: implicit declaration of function 'Open' [-Wimplicit-function-declaration]
     BPTR gamePrefsFH = Open(GAME_PREFS_PATH, MODE_OLDFILE);
                        ^~~~
c/game_preferences.c:37:29: error: 'GAME_PREFS_PATH' undeclared (first use in this function)
     BPTR gamePrefsFH = Open(GAME_PREFS_PATH, MODE_OLDFILE);
                             ^~~~~~~~~~~~~~~
c/game_preferences.c:37:46: error: 'MODE_OLDFILE' undeclared (first use in this function)
     BPTR gamePrefsFH = Open(GAME_PREFS_PATH, MODE_OLDFILE);
                                              ^~~~~~~~~~~~
c/game_preferences.c:38:9: error: 'DOSFALSE' undeclared (first use in this function)
     if (DOSFALSE == gamePrefsFH) {
         ^~~~~~~~
c/game_preferences.c:41:5: warning: implicit declaration of function 'Read' [-Wimplicit-function-declaration]
     Read(gamePrefsFH, Prefs_Persisted, (Prefs_PersistedEnd - Prefs_Persisted));
     ^~~~
c/game_preferences.c:42:5: warning: implicit declaration of function 'Close' [-Wimplicit-function-declaration]
     Close(gamePrefsFH);
     ^~~~~
c/game_preferences.c: In function 'Game_SavePreferences':
c/game_preferences.c:47:5: error: unknown type name 'BPTR'
     BPTR gamePrefsFH = Open(GAME_PREFS_PATH, MODE_READWRITE);
     ^~~~
c/game_preferences.c:47:29: error: 'GAME_PREFS_PATH' undeclared (first use in this function)
     BPTR gamePrefsFH = Open(GAME_PREFS_PATH, MODE_READWRITE);
                             ^~~~~~~~~~~~~~~
c/game_preferences.c:47:46: error: 'MODE_READWRITE' undeclared (first use in this function)
     BPTR gamePrefsFH = Open(GAME_PREFS_PATH, MODE_READWRITE);
                                              ^~~~~~~~~~~~~~
c/game_preferences.c:48:9: error: 'DOSFALSE' undeclared (first use in this function)
     if (DOSFALSE == gamePrefsFH) {
         ^~~~~~~~
c/game_preferences.c:52:28: error: 'Vid_FullScreen_b' undeclared (first use in this function)
     Prefs_FullScreen     = Vid_FullScreen_b;
                            ^~~~~~~~~~~~~~~~
c/game_preferences.c:53:28: error: 'Vid_DoubleHeight_b' undeclared (first use in this function)
     Prefs_PixelMode      = Vid_DoubleHeight_b;
                            ^~~~~~~~~~~~~~~~~~
c/game_preferences.c:55:29: error: 'UBYTE' undeclared (first use in this function)
     Prefs_FPSLimit       = (UBYTE)Vid_FPSLimit_l;
                             ^~~~~
c/game_preferences.c:55:35: error: expected ';' before 'Vid_FPSLimit_l'
     Prefs_FPSLimit       = (UBYTE)Vid_FPSLimit_l;
                                   ^~~~~~~~~~~~~~
c/game_preferences.c:56:35: error: expected ';' before 'Vid_LetterBoxMarginHeight_w'
     Prefs_VertMargin     = (UBYTE)Vid_LetterBoxMarginHeight_w;
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
c/game_preferences.c:60:5: warning: implicit declaration of function 'Write' [-Wimplicit-function-declaration]
     Write(gamePrefsFH, Prefs_Persisted, (Prefs_PersistedEnd - Prefs_Persisted));
     ^~~~~
make: *** [Makefile:61: c/game_preferences.o] Error 1
what have I forgotten to do this time
I... I have no idea. Builds fine for me
Karlos is offline  
Old 05 December 2023, 21:24   #3631
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,667
Is it failing to find the NDK ?
Karlos is offline  
Old 05 December 2023, 21:32   #3632
abu_the_monkey
Registered User
 
Join Date: Oct 2020
Location: Bicester
Posts: 2,056
probably, I did have to shut down the vm so anything could have gone wrong.

I will rebuild the thing (as per pippers post) and try again.
abu_the_monkey is offline  
Old 05 December 2023, 22:46   #3633
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,667
I'm about fit to drop and pass out, so good luck.
Karlos is offline  
Old 06 December 2023, 08:01   #3634
pipper
Registered User
 
Join Date: Jul 2017
Location: San Jose
Posts: 684
I think I fixed it. Some includes were missing leading to undeclared types.
pipper is offline  
Old 06 December 2023, 10:37   #3635
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,667
Quote:
Originally Posted by pipper View Post
I think I fixed it. Some includes were missing leading to undeclared types.
Most perplexing. It built here just fine before I pulled your changes, and pulling them seemingly makes no difference (which is, of course, hugely preferable to it breaking).
Karlos is offline  
Old 06 December 2023, 14:19   #3636
abu_the_monkey
Registered User
 
Join Date: Oct 2020
Location: Bicester
Posts: 2,056
cheers guys, it builds fine now
abu_the_monkey is offline  
Old 06 December 2023, 17:06   #3637
abu_the_monkey
Registered User
 
Join Date: Oct 2020
Location: Bicester
Posts: 2,056
no issues found other than the menu displaying in double pixel mode when that is selected in game on AGA screens only, RTG menu works fine.
abu_the_monkey is offline  
Old 06 December 2023, 17:11   #3638
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,667
Quote:
Originally Posted by abu_the_monkey View Post
no issues found other than the menu displaying in double pixel mode when that is selected in game on AGA screens only, RTG menu works fine.
I thought I fixed that? It is only supposed to apply the double height from prefs when in RTG mode. Hmmm.
Karlos is offline  
Old 06 December 2023, 17:18   #3639
abu_the_monkey
Registered User
 
Join Date: Oct 2020
Location: Bicester
Posts: 2,056
what you did works, as to say, in AGA screens it always starts in 1x1 pixel mode but, if you select double pixel mode in game and exit to the main menu it (the menu) is displayed in double pixel mode.

don't know if this is a new thing in the C version or has been there from the start.

edit: just tried an older version from paraj that I hadn't deleted/copied over and it has the same behaviour so I guess its been that way for a while just went unnoticed
Attached Thumbnails
Click image for larger version

Name:	133.png
Views:	53
Size:	74.4 KB
ID:	80954  

Last edited by abu_the_monkey; 06 December 2023 at 17:28.
abu_the_monkey is offline  
Old 09 December 2023, 17:32   #3640
abu_the_monkey
Registered User
 
Join Date: Oct 2020
Location: Bicester
Posts: 2,056
extend level zone limit beyond the original 256 per map

So, had a play with the engine code today and it would seem that the tables for CompactMap, BigMap and CurrentPointBrights in tables.bss are causing the issues with the automap and lighting in zones beyond the original 256 zone limit.

Code:
Lvl_CompactMap_vl:		ds.l	257
Lvl_BigMap_vl:			ds.l	256*10

PointBrightsPtr_l:		ds.l	1
CurrentPointBrights_vl:	ds.l	2*256*10
in a not very scientific way I changed them to

Code:
Lvl_CompactMap_vl:		ds.l	513
Lvl_BigMap_vl:			ds.l	512*10

PointBrightsPtr_l:		ds.l	1
CurrentPointBrights_vl:	ds.l	2*512*10
seems to have fixed the automap and lighting (not thoroughly tested)

other than consuming more memory what else might this affect?
abu_the_monkey is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alien Breed 3D II The Killing Grounds RTG patch Angus Retrogaming General Discussion 63 14 December 2022 15:20
Alien Breed & Alien Breed '92: SE - delay when picking up items / opening doors Ian support.WinUAE 16 23 December 2016 15:50
Alien Breed 3D II : The Killing Grounds code booklet alexh support.Games 19 10 October 2012 22:17
Alien Breed 3D 2 - The Killing Grounds Ironclaw support.Games 12 13 September 2005 13:07
HD Version of Alien Breed I ? Kintaro request.Old Rare Games 20 31 July 2003 10:48

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 12:30.

Top

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