18 December 2019, 10:50 | #1 |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
Rygar AGA - Source Code Released & Discussion
Not sure what happened to the previous posts but here's a xmas gift for the coders.
https://www.amigagamedev.com/Downloa...170_src.tar.gz Enjoy. |
18 December 2019, 11:47 | #2 |
Registered User
Join Date: Sep 2004
Location: Poland
Posts: 1,301
|
You mean about your new project?
It was moved here. |
18 December 2019, 11:54 | #3 | |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
Quote:
Last edited by DamienD; 18 December 2019 at 12:00. |
|
18 December 2019, 12:07 | #4 | |
OCS forever!
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 418
|
Quote:
|
|
18 December 2019, 12:15 | #5 |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
|
18 December 2019, 19:09 | #6 | |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
Quote:
You should have started a new thread for it, otherwise the announcement disappears quickly in the Rygar-Mega-Thread. Do you want to explain the "Vasm bugs" in the source to me? Maybe I could fix something. Which NDK did you use for the system headers? NDK3.9 didn't work for me: Code:
$ vasmm68k_mot -m68020 -x -I/usr/local/vbcc/sdk/NDK_3.9/include_i main.asm vasm 1.8g (c) in 2002-2019 Volker Barthelmann vasm M68k/CPU32/ColdFire cpu backend 2.3f (c) 2002-2019 Frank Wille vasm motorola syntax module 3.13 (c) 2002-2019 Frank Wille vasm test output module 1.0 (c) 2002 Volker Barthelmann error 68 in line 1 of "APTR": repeatedly defined symbol <ThisTask> called from line 79 of "/usr/local/vbcc/sdk/NDK_3.9/include_i/exec/execbase.i" included from line 32 of "/usr/local/vbcc/sdk/NDK_3.9/include_i/exec/exec.i" included from line 408 of "main.asm" >\1 EQU SOFFSET error 68 in line 7 of "s/const.asm": repeatedly defined symbol <ExecBase> included from line 417 of "main.asm" >ExecBase: equ 4 error 68 in line 2 of "s/memory.asm": repeatedly defined symbol <MEMF_ANY> included from line 424 of "main.asm" >MEMF_ANY: equ 0 ... Last edited by phx; 18 December 2019 at 19:12. Reason: :P |
|
18 December 2019, 21:00 | #7 |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
|
18 December 2019, 23:57 | #8 |
CaptainM68K-SPS France
|
|
19 December 2019, 00:02 | #9 |
Registered User
Join Date: Mar 2012
Location: Norfolk, UK
Posts: 1,153
|
Wow - that's a classy move - massive respect!
|
19 December 2019, 21:19 | #10 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,166
|
I looked at the module replay part for my game, and made it work, thanks to the source.
|
20 December 2019, 09:59 | #11 | |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
Quote:
Code:
HITPOINT_FRAMES; dc.w 0 ; queue of frames dc.l 0 ;bug in VASM HITPOINT_FRAMES_Q; dc.w 0 ; queue of frames HITPOINT_RESTORE_PTRS: dc.l 0,0 ;CNOP 0,4 HITPOINT_XPOS: dc.w 0 ; queue of x positions dc.l 0 ; bug in VASM HITPOINT_YPOS: dc.w 0 ; queue of y positions dc.l 0 I was under a lot of time pressure for the compo so I just needed to get it working and that was the solution I came up with, chances are it isn't a VASM bug but it certainly had me stumped. To check you'd need to assemble the code: Code:
C:\Development\ToolChain\vasm.exe -kick1hunks -Fhunkexe -I C:\Development\Rygar\Include -o C:\Temp\test.exe C:\Development\Rygar\main.asm |
|
20 December 2019, 10:11 | #12 |
Moderator
Join Date: Jan 2002
Location: Chicago, IL
Posts: 3,375
|
@mcgeezer
Respect, what a very nice gesture to the community. |
20 December 2019, 14:42 | #13 | ||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
Quote:
There is a semicolon behind HITPOINT_FRAMES and HITPOINT_FRAMES_Q, which has the effect that the "dc.w 0" is ignored. You can clearly see it in the vasm debug output (remove the -Fhunkexe option for it): Code:
b2de: symbol: HITPOINT_FRAMES LAB (0xb2de) sec=DATA b2de: data(4): 00 00 00 00 b2e2: symbol: HITPOINT_FRAMES_Q LAB (0xb2e2) UNUSED sec=DATA b2e2: symbol: HITPOINT_RESTORE_PTRS LAB (0xb2e2) sec=DATA b2e2: data(4): 00 00 00 00 Quote:
|
||
20 December 2019, 14:56 | #14 | |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
Quote:
Ummmm that may have been it, it was so long ago I very much doubt it is a bug in vasm... I effectively labelled the lines of code where there were problems. In the source you downloaded is DISABLE_ENEMY_COLLISION not defined in the source of the main file? Code:
ENABLE_DEBUG: equ 0 ; Enables system up debugging with MonAm FAST_LOAD: equ 1 ; Read from floppy ENABLE_MULTIDRIVE: equ 0 ; Must be set to 1 for release. DISABLE_ENEMY_COLLISION equ 0 ; Rygar can't be killed DEBUG_UNLIMITED_LIVES: equ 0 DEBUG_OBS_DISABLE: equ 0 ; Rygar can move through obstacles DISABLE_GRAVITY: equ 0 ; Disable gravity - useful for round debugging. ENABLE_CHEAT: equ 0 Glad you got it assembled though and agree I missed the target architecture argument (I have a rotten cold at the moment so I'm not firing on all cyclinders). Graeme |
|
20 December 2019, 16:05 | #15 | ||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
Quote:
(I'm wondering if vasm's IFEQ directive shouldn't treat an undefined symbol as zero by default. Maybe it should, if other assemblers do the same...) Quote:
|
||
20 December 2019, 16:16 | #16 | |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,410
|
Quote:
And thanks for the complete source code. I'll definitely take a look Hmm, that might be useful actually. It would probably need to throw a warning to prevent typo-confusion, though. |
|
21 December 2019, 07:36 | #17 |
Moon 1969 = amiga 1985
Join Date: Apr 2007
Location: belgium
Age: 48
Posts: 3,913
|
respect for what you did thanks mcgizzer, i hope it will help to create new games fromit.
|
21 December 2019, 09:58 | #18 |
Registered User
Join Date: Jul 2017
Location: Budapest
Posts: 355
|
Much appreciated, thank you
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Discussion: Rygar AGA Edition | mcgeezer | Coders. Contest | 1815 | 20 May 2023 20:44 |
X-Copy source code released! | mr.vince | News | 59 | 21 May 2021 03:45 |
Adebug for Amiga source code released | frost242 | News | 5 | 25 January 2018 17:24 |
DPaint 1 source code released | Jope | News | 18 | 27 July 2015 02:37 |
Modplug Tracker source code released | Kodoichi | Amiga scene | 3 | 26 January 2004 23:29 |
|
|