- Top Stats

Top Posters Top Topic Starters Top Topics
AMSDOS 1288
arnoldemu 1128
TFM 1124
ervin 745
ronaldo 403
AMSDOS 55
arnoldemu 51
ervin 42
EgoTrip 35
Arnaud 33
FutureOS corner - 70725 Views TFM/FS 07:12, 01 October 10
Example Z80 as... - 66117 Views arnoldemu 10:59, 04 April 10
#CPCtelera 1.4... - 33007 Views ronaldo 13:59, 11 May 15
BASIC programm... - 30940 Views arnoldemu 16:23, 22 May 09
CHAMP Assemble... - 24980 Views Bruce Abbo... 12:59, 16 January 14


Author Topic: [cpctelera]Bit Arrays  (Read 3442 times)

0 Members and 1 Guest are viewing this topic.

Offline SpDizzy

  • CPC464
  • **
  • Posts: 28
  • Country: es
  • Liked: 8
Re: [cpctelera]Bit Arrays
« Reply #50 on: 12:47, 14 July 18 »
First of all, sorry for reopen this thread after so much time guys  :picard:

I was testing with the code from @SRS and profe @ronaldo to compress and exomize a .rel file from /obj folder after project compilation with 'make' command.

Everything works perfectly, and a .txt file is obtained with level data.

So here are the questions...

1/ ┬┐Where to go form here? I mean, how to convert this 'level.txt' into 'level.c' and 'level.h' and unexomize data on the fly?

2/ I understand is necessary after level compression and exomization, to re compile project with new compressed 'level.c' and 'level.h' something like > 'make clean' > 'make cleanall' > 'make', am I correct?

3/ Does @Arnaud approach work the same way? It seems to require a 'level.bin' file, automatically converted in 'level.c' and 'level.h' after compilation.

Once again sorry for the delayed comment, please feel free to delete it if it's not appropiate.

Offline Arnaud

  • Supporter
  • 464 Plus
  • *
  • Posts: 480
  • Country: fr
  • Liked: 379
Re: [cpctelera]Bit Arrays
« Reply #51 on: 21:05, 15 July 18 »
1/ ┬┐Where to go form here? I mean, how to convert this 'level.txt' into 'level.c' and 'level.h' and unexomize data on the fly?
Exactly, rename level.txt into level.h. include it into your code and deflate the array of compressed data to free memory area

2/ I understand is necessary after level compression and exomization, to re compile project with new compressed 'level.c' and 'level.h' something like > 'make clean' > 'make cleanall' > 'make', am I correct?
Yes, because new source files are generated and need to be compiled to make an executable

3/ Does @Arnaud approach work the same way? It seems to require a 'level.bin' file, automatically converted in 'level.c' and 'level.h' after compilation.
Yes this the same way, the automatic convertion of cpctelera bin to c is used, that all.

Once again sorry for the delayed comment, please feel free to delete it if it's not appropiate.
No worry of that  ;D
And a new cpcretrodev contest is a good time to code.

Offline SpDizzy

  • CPC464
  • **
  • Posts: 28
  • Country: es
  • Liked: 8
Re: [cpctelera]Bit Arrays
« Reply #52 on: 19:03, 16 July 18 »
Thanks so much for your quick response and amazing support @Arnaud , it works like a charm!!
All clear now for me, it's a complete joy to have all the questions solved in no time by authentic professionals.
Making an amstrad videogame was allways my dream since my first micro (cpc 464) arrived on home 30 years ago, but I think I need to improve my coding skills a bit more to get it.
Obviously @ronaldo has the key for success on cpcretrodev contest: "Programad insensatos!"  ;D

Offline Arnaud

  • Supporter
  • 464 Plus
  • *
  • Posts: 480
  • Country: fr
  • Liked: 379
Re: [cpctelera]Bit Arrays
« Reply #53 on: 19:56, 16 July 18 »
Thanks so much for your quick response and amazing support @Arnaud , it works like a charm!!
All clear now for me, it's a complete joy to have all the questions solved in no time by authentic professionals.
Making an amstrad videogame was allways my dream since my first micro (cpc 464) arrived on home 30 years ago, but I think I need to improve my coding skills a bit more to get it.
Obviously @ronaldo has the key for success on cpcretrodev contest: "Programad insensatos!"  ;D
Thanks  ;)
You should try to make an "easy" (nothing is really easy with coding) game, you'll find all support needed here with forum members.

Offline EgoTrip

  • 6128 Plus
  • ******
  • Posts: 1.051
  • Country: gl
    • http://egochip.blogspot.co.uk/
  • Liked: 675
Re: [cpctelera]Bit Arrays
« Reply #54 on: 14:00, 18 July 18 »
Thanks so much for your quick response and amazing support @Arnaud , it works like a charm!!
All clear now for me, it's a complete joy to have all the questions solved in no time by authentic professionals.
Making an amstrad videogame was allways my dream since my first micro (cpc 464) arrived on home 30 years ago, but I think I need to improve my coding skills a bit more to get it.
Obviously @ronaldo has the key for success on cpcretrodev contest: "Programad insensatos!"  ;D
If you are converting a lot of things, I shared my batch file to make it a lot easier.
http://www.cpcwiki.eu/forum/programming/exomizer-batch-script/msg132692/#msg132692
EgoTrip's Stuff
EgoTrip's Stuff

Offline SpDizzy

  • CPC464
  • **
  • Posts: 28
  • Country: es
  • Liked: 8
Re: [cpctelera]Bit Arrays
« Reply #55 on: 12:31, 21 July 18 »
If you are converting a lot of things, I shared my batch file to make it a lot easier.
http://www.cpcwiki.eu/forum/programming/exomizer-batch-script/msg132692/#msg132692
Oh, thanks so much @EgoTrip , I hope you could finish your project  ;)