Author Topic: Importing  (Read 1239 times)

Matt72

  • Porrean (+50)
  • *
  • Posts: 67
  • Pink Cloud
    • View Profile
Importing
« on: October 10, 2006, 10:02:30 pm »
How do you import resources into the ROM? Like sprites and tilesets.

Vehek

  • Errare Explorer (+1500)
  • *
  • Posts: 1756
    • View Profile
Re: Importing
« Reply #1 on: October 10, 2006, 11:04:49 pm »
Well, in your case of sprites and tilesets, the compression tool (recompress) and possibly repointing.
Also, tilesets are made up of several compressed graphic pieces.
« Last Edit: October 11, 2006, 08:00:51 pm by Vehek »

Chrono'99

  • Guru of Reason Emeritus
  • God of War (+3000)
  • *
  • Posts: 3605
    • View Profile
Re: Importing
« Reply #2 on: October 11, 2006, 04:32:57 am »
Ah, I was just about to start a topic like that but with a more, er, precise question: is it possible to add totally new sprite graphics in free space and repoint a sprite slot to them (instead of just replacing the existent graphics of a sprite)? This would allow for more unique created sprites instead of having to sacrifice some existent NPC.

Geiger

  • Guru of Life Emeritus
  • Chronopolitan (+300)
  • *
  • Posts: 315
    • View Profile
    • Geiger's Crypt
Re: Importing
« Reply #3 on: October 11, 2006, 09:34:17 am »
Not really.  Flux's freespace calculator only works for the known freespace and items it knows how to edit.  Since it knows nothing about editing graphics, it does not take their locations into account, and would gleefully overwrite your new stuff.

---T.Geiger

Vehek

  • Errare Explorer (+1500)
  • *
  • Posts: 1756
    • View Profile
Re: Importing
« Reply #4 on: October 11, 2006, 11:22:37 am »
You can add new graphics to free space. You just need to plan it out so you don't overwrite other data.

Also...
Quote from: Offsets guide
242015   2422E7   PTR   No   No   Pointers to npc and monster graphics   7/7/2003
2422E8   2422FF   ---   No   No   UNUSED SPACE (25 bytes)   10/19/2004
You can use that unused space for a few more sprite slots.

Geiger

  • Guru of Life Emeritus
  • Chronopolitan (+300)
  • *
  • Posts: 315
    • View Profile
    • Geiger's Crypt
Re: Importing
« Reply #5 on: October 11, 2006, 01:32:52 pm »
If that space is truly unused (some junk and unused areas actually contained unknown data), you should be able to put another 7 pointers in, presuming the game does not have a hard-coded limit of 241.  Course, then you need to figure out how to make the game assemble and animate your new character correctly.  May have to use another PC as a template and piggy-back its data (if that's even possible).

---T.Geiger