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

0 Members and 2 Guests are viewing this topic.

Offline SpDizzy

  • CPC464
  • **
  • Posts: 3
  • Country: es
  • Liked: 0
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: 385
  • Country: fr
  • Liked: 268
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: 3
  • Country: es
  • Liked: 0
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: 385
  • Country: fr
  • Liked: 268
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.039
  • Country: gl
    • http://egochip.blogspot.co.uk/
  • Liked: 645
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: 3
  • Country: es
  • Liked: 0
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  ;)