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

Author Topic: How to insert script with Atlas and a .tbl file  (Read 1115 times)

Mirakichi

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
How to insert script with Atlas and a .tbl file
« on: December 07, 2017, 06:49:56 pm »
Hi, someone can explain me how I can insert text using the Atlas and a .tbl file?
I think the Atlas command a bit complicated, if I have the following infos about the text file/rom:

First pointer start in 00363
Last pointer is in 00424
First text string start in 0045E
The texts ends in 005215

If the pointer is 00504E, so this value points to 4E500, here begins a text/speech.
How I use the Atlas commands and a .tbl file + text file and the rom to reinsert an script using pointers like as the above?

yugisokubodai

  • Full Member
  • ***
  • Posts: 139
    • View Profile
    • Assembly
Re: How to insert script with Atlas and a .tbl file
« Reply #1 on: December 07, 2017, 07:02:14 pm »
I guess this post is in a wrong place to go.
Here you are.

https://filetrip.net/dl?KlYQdYDLyZ

A sample to use Atlas. I find that Atlas is convenient but most pro hackers use their custom tools.

Mirakichi

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: How to insert script with Atlas and a .tbl file
« Reply #2 on: December 07, 2017, 07:11:10 pm »
Thanks. I'll try here.

December 08, 2017, 05:45:52 am - (Auto Merged - Double Posts are not allowed before 7 days.)
So @yougisokubodai, I've tried insert to the my texts using as base the FF8 script, but didn't work. I've extracted these texts from my game file https://drive.google.com/file/d/1v8cNQ-EF8xyw16E-KmG8fiT8exXPgXyF/view?usp=drivesdk using the Cartographer. How I reinsert these texts with the Atlas?
« Last Edit: December 08, 2017, 05:45:52 am by Mirakichi »

yugisokubodai

  • Full Member
  • ***
  • Posts: 139
    • View Profile
    • Assembly
Re: How to insert script with Atlas and a .tbl file
« Reply #3 on: December 09, 2017, 08:46:34 am »
I checked your files. The dumped text is raw dump, not pointer based dump so you can't use it with Atlas. You must dump the text out using pointers table.

Mirakichi

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: How to insert script with Atlas and a .tbl file
« Reply #4 on: December 10, 2017, 02:23:39 pm »
Hi @yogisokubodai, I managed to export the texts on the correct format to reinsert using the Atlas, here are the files
https://drive.google.com/file/d/1qEodOSD7YtlNjMZRXrq2vIRKOsS-HUqf/view?usp=drivesdk
2 text files are extracted, "Dialogue Block (RAW)" and "Dialogue Block (POINTER).
I've tried reinsert it using as base the FF8 script, but ever there is an error on the Line 6.
My problem now is only the reimport. Can you help me on the reinserting process?

yugisokubodai

  • Full Member
  • ***
  • Posts: 139
    • View Profile
    • Assembly
Re: How to insert script with Atlas and a .tbl file
« Reply #5 on: December 11, 2017, 09:05:27 pm »
You haven't switched your file to sharing mode so I can't download it.
It says "You need permission".
Btw, the insert is simple. Remember to change your pointer size and pointer base and everything will be ok.

Mirakichi

  • Jr. Member
  • **
  • Posts: 19
    • View Profile

yugisokubodai

  • Full Member
  • ***
  • Posts: 139
    • View Profile
    • Assembly
Re: How to insert script with Atlas and a .tbl file
« Reply #7 on: December 16, 2017, 09:01:04 am »
Here is the file link shared: https://drive.google.com/file/d/1qEodOSD7YtlNjMZRXrq2vIRKOsS-HUqf/view?usp=drivesdk

I checked your files. There're a problem with your Atlas script.

First, POINTER #0 @ $335D1 - STRING #0 @ $33671
Pointer #0 has the value of 00033671, so you can see the base is $0000. However, you set in the header:

Code: [Select]
#CREATEPTR(MyPtr, "LOROM", $335D1, 32)
This is wrong.

Mirakichi

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: How to insert script with Atlas and a .tbl file
« Reply #8 on: December 16, 2017, 04:39:02 pm »
I'll try here

December 17, 2017, 06:08:31 am - (Auto Merged - Double Posts are not allowed before 7 days.)
I've tried Yougisokubodai, but I can't. Can you write for me a script to insert the text sample on the link? so from this script I can adapt it to insert others texts.
« Last Edit: December 17, 2017, 06:08:31 am by Mirakichi »

yugisokubodai

  • Full Member
  • ***
  • Posts: 139
    • View Profile
    • Assembly
Re: How to insert script with Atlas and a .tbl file
« Reply #9 on: December 18, 2017, 09:21:34 pm »
1. The #CREATEPTR must be applied with a #WRITE. You use #W32 while include #CREATEPTR in the header.
2. There is no "LOROM" header in Atlas. It must be "Lorom80" or "Lorom00". In this case, change your header to "Hirom" and base value is 00 --> it will be ok.
3. Check your table file. You set a wrong a table in the header. Or else you must modify the header you declared in the header. Because the text contains some values that are not in the header you declared.

Mirakichi

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: How to insert script with Atlas and a .tbl file
« Reply #10 on: December 19, 2017, 04:25:39 pm »
Hi Yogisikubodai, I've tried here and script has worked partially, the values of the pointers are inserted in the table of pointers repeatedly, the same value in #JMP.
Ex:
Table of Pointers
716303  796303  8F6303

Table of Pointers after the inserting process
716303  71603  71603

The value of first pointer is inserted on all the following pointers. The correct will a different value for each pointer.
What's wrong?

yugisokubodai

  • Full Member
  • ***
  • Posts: 139
    • View Profile
    • Assembly
Re: How to insert script with Atlas and a .tbl file
« Reply #11 on: December 19, 2017, 06:52:43 pm »
Remove the comments (//) because nothing is inserted after //.

Mirakichi

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: How to insert script with Atlas and a .tbl file
« Reply #12 on: December 21, 2017, 04:44:06 pm »
Thankyou very muchhhhhh! Yougisokubodai, finally I got it! The Atlas is perfect, my translation is too more easy now, more than 200 pointers recalculated in seconds. Thankyou very much really!!

December 27, 2017, 02:07:50 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
This topic now can be classified as "SOLVED". My Project Zero II translation is finished now. Thankyou Yogisokubodai by your help.
« Last Edit: December 27, 2017, 02:07:50 pm by Mirakichi »

Nightcrawler

  • Hero Member
  • *****
  • Posts: 5686
    • View Profile
    • Nightcrawler's Translation Corporation
Re: How to insert script with Atlas and a .tbl file
« Reply #13 on: December 28, 2017, 10:13:55 am »
You can edit the first post of this topic and change the message icon to 'Topic Solved'. It's a new feature.
TransCorp - Over 20 years of community dedication.
Dual Orb 2, Wozz, Emerald Dragon, Tenshi No Uta, Glory of Heracles IV SFC/SNES Translations