News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: Ask about problem string text on Atlas  (Read 670 times)

HoaiTrung97

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Ask about problem string text on Atlas
« on: June 01, 2020, 12:17:20 am »
Hello, everyone. I am trying to hacking the text of LovePlus (DS) game, my script atlas now works quite well with it, but it is still not perfect and there are a few questions I hope someone here can explain for me.

The string text of game looks like this:

<xxx><yyy>

yyy = text of game, example i have : 'Hello.'

xxx = This is the hex value of the length string text, example 'Hello.' = 0x06. It is always placed in front of each string text.

Currently the atlas script I wrote only can instert text and pointer, but I don't know how to mod the <xxx> value of the text.

I wonder, does Atlas have any function to solve this type of text string?

(I'll upload the sample file later, because I can't use a PC right now) :woot!:

edited:
Here the link sample file

https://www.mediafire.com/file/i2xrx44ijt4vd7x/00000240.bin/file
« Last Edit: June 01, 2020, 01:39:02 am by HoaiTrung97 »

Vehek

  • Full Member
  • ***
  • Posts: 189
    • View Profile
Re: Ask about problem string text on Atlas
« Reply #1 on: June 01, 2020, 01:39:34 am »
I believe this is what's called a "Pascal string", and it's something that Atlas supports, but I don't remember how it works off-hand.

HoaiTrung97

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Re: Ask about problem string text on Atlas
« Reply #2 on: June 01, 2020, 01:48:39 am »
I believe this is what's called a "Pascal string", and it's something that Atlas supports, but I don't remember how it works off-hand.
Thank you for reply, I will try it right now. thanks ;D

June 01, 2020, 02:29:46 am - (Auto Merged - Double Posts are not allowed before 7 days.)
Hello Vehek, "Pascal string" really worked on my script, you really has saved me. Thank you.  ;D

I have still a question, if can, I hope you can explain for me.

On this game, Pascal String only work up to value "0x80" (128 byte), if more, it will should become "0x8001" (129 byte) to it work. But on Atlas it will become "0x81" (129 byte), this do mess text on game.

I think i can do some trick to it pass this, but still better should try ask you in case have really a resolution to fix this.  :woot!:
« Last Edit: June 01, 2020, 02:29:46 am by HoaiTrung97 »

Risae

  • Jr. Member
  • **
  • Posts: 48
    • View Profile
Re: Ask about problem string text on Atlas
« Reply #3 on: June 01, 2020, 06:34:43 am »
Hi HoaiTrung97,

never worked with Pascal strings before, but you might wanna hit up "abw", the developer of "abcde":

https://www.romhacking.net/forum/index.php?topic=25968.0

Not sure if abcde already supportes those, but you might be able to ask for a feature request!

HoaiTrung97

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Re: Ask about problem string text on Atlas
« Reply #4 on: June 01, 2020, 06:55:48 am »
Hi HoaiTrung97,

never worked with Pascal strings before, but you might wanna hit up "abw", the developer of "abcde":

https://www.romhacking.net/forum/index.php?topic=25968.0

Not sure if abcde already supportes those, but you might be able to ask for a feature request!
Hello, Risae!

I will try research with that tool right now, thank you for help.   :woot!: