Search found 301 matches

by jorgegv
Mon Apr 15, 2024 8:35 pm
Forum: Sinclair ZX
Topic: DSKTOOL - A tool for creating Spectrum +3 game loaders
Replies: 4
Views: 152

Re: DSKTOOL - A tool for creating Spectrum +3 game loaders

Just a comment for those early birds that have already looked at the code (are there any? :-) ): I found some problems with Gotek drives that in turn were symptoms of deficient FDC emulation in most emulators: everything worked fine except in Gotek drives, and RetroVirtualMachine and Es.Pectrum emul...
by jorgegv
Fri Apr 12, 2024 4:17 pm
Forum: Sinclair ZX
Topic: DSKTOOL - A tool for creating Spectrum +3 game loaders
Replies: 4
Views: 152

DSKTOOL - A tool for creating Spectrum +3 game loaders

Hi guys, I have been lately creating the +3 disk version of Cesare the Somnambule and due to the really tight that everything was laid out in memory at load time, using +3DOS for loading it was not really an option. So I set up to create my own loader in assembler, talking directly to the Floppy Con...
by jorgegv
Sun Apr 07, 2024 6:29 am
Forum: Sinclair ZX
Topic: RAGE1: New Adventure Game Engine for ZX Spectrum
Replies: 42
Views: 11066

Re: RAGE1: New Adventure Game Engine for ZX Spectrum

You don't need to install anything directly from CPAN for RAGE1. There are system packages (.deb) for all requirements. And if you directly installed something with cpan or cpanm commands, you have definitely mangled your system perl installation. Those commands (cpan or cpanm) should only be used w...
by jorgegv
Sat Apr 06, 2024 5:50 pm
Forum: Sinclair ZX
Topic: RAGE1: New Adventure Game Engine for ZX Spectrum
Replies: 42
Views: 11066

Re: RAGE1: New Adventure Game Engine for ZX Spectrum

Strange, if you have libgd-perl It should work.

Whats the output of the following?

Code: Select all

perl -MGD::Image -e 'print "hola\n";'
I dont know right now the relative sizes of 2.2 and 2.4...

I want to migrate RAGE1 to latest z88dk, but its not so high on my prio list...
by jorgegv
Sat Apr 06, 2024 3:33 pm
Forum: Sinclair ZX
Topic: RAGE1: New Adventure Game Engine for ZX Spectrum
Replies: 42
Views: 11066

Re: RAGE1: New Adventure Game Engine for ZX Spectrum

Hi Chris, I have run the build on a Mint 21 container following the REQUIREMENTS.md instructions, and all data is generated fine without errors for the default game ("make build"). Can you post the output of the apt command for installing the requirements? If the libgd-perl package is corr...
by jorgegv
Thu Apr 04, 2024 6:37 pm
Forum: Sinclair ZX
Topic: RAGE1: New Adventure Game Engine for ZX Spectrum
Replies: 42
Views: 11066

Re: RAGE1: New Adventure Game Engine for ZX Spectrum

Sorry just Saw your post. You dont need to install from source, you Will mangle your perl install.

You have the package already installed.

Whats the output of make build?
by jorgegv
Thu Apr 04, 2024 6:36 pm
Forum: Sinclair ZX
Topic: RAGE1: New Adventure Game Engine for ZX Spectrum
Replies: 42
Views: 11066

Re: RAGE1: New Adventure Game Engine for ZX Spectrum

May I help? GD::Image IS the way to remove the netpbm dependency and its basic for extracting graphics data from PNGs, like sprites, tiles, Maps, etc.

Can you post your error? From your output above It appears to be installed correctly (package libgd-perl)
by jorgegv
Thu Apr 04, 2024 1:40 pm
Forum: Sinclair ZX
Topic: RAGE1: New Adventure Game Engine for ZX Spectrum
Replies: 42
Views: 11066

Re: RAGE1: New Adventure Game Engine for ZX Spectrum

You need to follow the instructions for a new Game. If you just want to build the test Game, run "make build", and "make run" when It finishes the build. You need to have Fuse installed for "make run" to work, but if not, you can run the generated "game.tap" i...
by jorgegv
Mon Apr 01, 2024 10:15 pm
Forum: Sinclair ZX
Topic: RAGE1: New Adventure Game Engine for ZX Spectrum
Replies: 42
Views: 11066

Re: RAGE1: New Adventure Game Engine for ZX Spectrum

Hi Chris,

I have removed the NetPBM dependency and updated the REQUIREMENTS document with the exact command lines for Fedora, Ubuntu, Debian and Linux Mint:

https://github.com/jorgegv/rage1/blob/master/doc/REQUIREMENTS.md

Hope you find it easier this time :-)

Have fun.
J.
by jorgegv
Fri Mar 29, 2024 11:08 pm
Forum: Sinclair ZX
Topic: RAGE1: New Adventure Game Engine for ZX Spectrum
Replies: 42
Views: 11066

Re: RAGE1: New Adventure Game Engine for ZX Spectrum

OK I see where the problem is. Ubuntu is shipping netpbm 10.0, which was released before...2008! This version contains pngtopnm tool. Relese 10.48 and later (since september 2008) have replaced pngtopnm with pngtopam, which RAGE1 currently uses. Current Debian and Fedora ship Netpbm 11, which includ...
by jorgegv
Fri Mar 29, 2024 9:19 pm
Forum: Sinclair ZX
Topic: RAGE1: New Adventure Game Engine for ZX Spectrum
Replies: 42
Views: 11066

Re: RAGE1: New Adventure Game Engine for ZX Spectrum

Anyway i'm removing the netpbm dependency soon...
by jorgegv
Fri Mar 29, 2024 9:11 pm
Forum: Sinclair ZX
Topic: RAGE1: New Adventure Game Engine for ZX Spectrum
Replies: 42
Views: 11066

Re: RAGE1: New Adventure Game Engine for ZX Spectrum

MMM i dont need to install anything from source, all IS available from packages in Fedora 39, I assume It IS also for other distros...

You are missing pngtopam and pamtable programa. They come in netpbm in Fedora.
by jorgegv
Fri Mar 29, 2024 6:06 pm
Forum: Sinclair ZX
Topic: RAGE1: New Adventure Game Engine for ZX Spectrum
Replies: 42
Views: 11066

Re: RAGE1: New Adventure Game Engine for ZX Spectrum

Hi, it's almost a year and a half since last post, but I'd like to announce that we have released the first full game using RAGE1 engine , only for ZX 128K models: Cesare the Somnambule , a classic Lucasarts/Sierra style adventure game. The game has allowed me to fix loads of bugs and add lots of ne...
by jorgegv
Sat Mar 16, 2024 7:22 pm
Forum: Sinclair ZX
Topic: Bank 7 corruption while loading in Plus2A mode
Replies: 7
Views: 311

Re: Bank 7 corruption while loading in Plus2A mode

Just a little update on this one, for future reference: After I had done the changes indicated above before to my BASIC+ASM loader, I was still having sporadic crashes (but extrenely infrequent), due again to the same issue: corruption at 0xD200 in bank 7. The issue was extrenmely rare, but I manage...
by jorgegv
Thu Mar 14, 2024 9:27 am
Forum: Sinclair ZX
Topic: Compiler auxiliary functions above $C000
Replies: 3
Views: 109

Re: Compiler auxiliary functions above $C000

Thanks for your comments, Dom, your advice is greatly appreciated, as usual. I've got to ask - why newlib? Is there something missing in classic that you need? It's just a matter of opportunity. RAGE1 started some 3 years ago as a SDCC+Newlib project, then I added (handcrafted) banking support to it...
by jorgegv
Thu Mar 14, 2024 8:57 am
Forum: Sinclair ZX
Topic: Compiler auxiliary functions above $C000
Replies: 3
Views: 109

Re: Compiler auxiliary functions above $C000

Sorry, the compress_zx0 section should not probably be in that list
by jorgegv
Wed Mar 13, 2024 9:44 pm
Forum: Sinclair ZX
Topic: Compiler auxiliary functions above $C000
Replies: 3
Views: 109

Compiler auxiliary functions above $C000

G'night, I have stomped on something that took me a good while to debug. Context is a 128K game (banking in use), where the memory map is almost completely full. Compiler is SDCC and libc is Newlib. In that context, I have a function in memory below $C000, and that function calls a bank switching fu...
by jorgegv
Tue Feb 27, 2024 12:14 pm
Forum: Sinclair ZX
Topic: Bank 7 corruption while loading in Plus2A mode
Replies: 7
Views: 311

Re: Bank 7 corruption while loading in Plus2A mode

THat worked indeed! I added the following to my bankswitch routine: res 4,(iy+1) ; reset bit 4 of FLAGS to disable ; floppy motor check while loading ; (avoids data corruption in BANK7) And I also move my DI to be before the RES instruction, and now the corruption is no more! Thanks Dom, this was a ...
by jorgegv
Tue Feb 27, 2024 12:29 am
Forum: Sinclair ZX
Topic: Bank 7 corruption while loading in Plus2A mode
Replies: 7
Views: 311

Bank 7 corruption while loading in Plus2A mode

Hi guys, I have the following problem: A 128K game works fine in 128K/Plus2 mode, but crashes in Plus2A mode. The problem has been traced as a corruption of a single byte at position $D600 in Bank 7 (offset $2600 from $C000). The data in that address is compressed, this change makes it decompress in...
by jorgegv
Sun Feb 25, 2024 5:56 pm
Forum: Misc
Topic: switch jump table?
Replies: 6
Views: 224

Re: switch jump table?

Alternatively create 256 functions, stick their addresses in an array and dispatch on that. I do It this way in the Code that dispatches rule checks and actions in RAGE1. But to be space efficient, it's best that your switch values start at 0 and are contiguous (in RAGE1, they are). Oh, and one adv...
by jorgegv
Tue Feb 20, 2024 9:40 pm
Forum: Misc
Topic: Recommendation for declaring constants
Replies: 6
Views: 190

Re: Recommendation for declaring constants

I mean this:

Code: Select all

public _VAL8
defc _VAL8 = 0x25
And then:

Code: Select all

extern void *VAL8;
#define VAL8 (uint8_t)&VAL8
by jorgegv
Tue Feb 20, 2024 9:38 pm
Forum: Misc
Topic: Recommendation for declaring constants
Replies: 6
Views: 190

Re: Recommendation for declaring constants

It's the same pattern - we use this one in the library to pass link time values from the crt to the library. The generated code is the same as my previous example. ; Assembler file PUBLIC _SCRM_TEXT1 defc _SCRM_TEXT1 = 0x1000 // C file extern void screenmode(int); extern void *SCRM_TEXT1; #define S...
by jorgegv
Fri Feb 02, 2024 4:13 pm
Forum: Sinclair ZX
Topic: Issues when migrating to classic lib
Replies: 15
Views: 645

Re: Issues when migrating to classic lib

What about the stack? When I find unexpected resets, often the stack has some problem...