Text for frames of shapes

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
TMNM Dragon

Text for frames of shapes

Post by TMNM Dragon »

eg. Shape 377 is 'food item'
Each frame has it's own name in the game.
How do you edit that?
Also is it possible, if I create a new shape with multiple frames, to have a different name for each frame?

I found I could edit existing ones in SI by unpacking text.flx. But there are a couple thousand files, and it's difficult to repack it in the right order.
Also it doesn't help for new games (not using BG or SI shapes), because I can't find a pointer table. Texts 0 to 1023 correspond to the shape numbers, but what determines where the frame names go?
But of course none of that really matters, if there is a way for ES to edit the frame names.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Text for frames of shapes

Post by Dominus »

I don't think it is possible to give frames names. Only the shape name is given. I might be wrong though.
You can change the shape-names with ES.
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
drcode
Site Admin
Posts: 2267
Joined: Thu May 14, 2020 1:34 pm

Re: Text for frames of shapes

Post by drcode »

True. The few objects that have different names for shapes are hard-coded at present.
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: Text for frames of shapes

Post by wjp »

We could introduce new syntax for this in text.flx.

Maybe something as simple as

frame 0 name;frame 1 name;frame 2 name;....
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: Text for frames of shapes

Post by artaxerxes »

and you should use textpack for unflexing text.flx. Much easier to work with the result.

Run it like this:
texpack -x text.flx text.txt

and edit text.txt

Artaxerxes
Locked