+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  Atlas Issues
Pages: [1] 2 3 ... 5
Author Topic: Atlas Issues  (Read 2694 times)
DarknessSavior
Guest
« on: May 05, 2007, 11:43:39 am »

Suzaku sent me a small portion of a script translation to try inserting, using Atlas. However, after messing with it for a while (and with RC providing assistance, after the first try) it wouldn't work.

Here's the additions I made to the file, so that Atlas can be used:

#VAR(table, TABLE)
#ADDTBL("cte2.tbl", Table)
#ACTIVETBL(Table)
#SMA("HIROM")
#JMP($370708)

RC said he was pretty sure that was correct. Is it?

Also, we tried changing various things to see if that was an issue. Getting rid of the Japanese did nothing, nor did typing out the script manually (something RC suggested). The two tables (Japanese and English) had different control codes at one point (I shortened them for the English version) but I changed them so they'd be the same to try again, and still nothing.

Can anyone tell me what I'm doing wrong? O.o

~DS
Gideon Zhi
Guest
« Reply #1 on: May 05, 2007, 12:01:11 pm »

One thing I immediately notice is that you've declared a variable called "table" yet you're assinging the .tbl file to a variable called "Table" :p
RedComet
Guest
« Reply #2 on: May 05, 2007, 12:01:17 pm »

The problem, if I recall correctly, wasn't the set up commands, but the body of the script. It reported an error at line 6 which was after those commands and where the text began. If that helps anyone. I had a similar problem happen to me with Bare Knuckle 3. The script was in EUC and I'm assuming that was what caused the problem, which is why I suggested typing a small portion of the script by hand as a test, but that didn't work either.
Gideon Zhi
Guest
« Reply #3 on: May 05, 2007, 12:02:08 pm »

In that case, make sure the file's getting saved as ANSI encoding.
DarknessSavior
Guest
« Reply #4 on: May 05, 2007, 12:03:44 pm »

Quote from: Gideon Zhi on May 05, 2007, 12:01:11 pm
One thing I immediately notice is that you've declared a variable called "table" yet you're assinging the .tbl file to a variable called "Table" :p

As far as that goes, I typed out exactly what was in the "Atlas How To" file that was included with Atlas. Being my first time using it, I didn't want to screw anything up. But, I'll try changing that when I get home.

Quote from: Gideon Zhi on May 05, 2007, 12:02:08 pm
In that case, make sure the file's getting saved as ANSI encoding.

Eh? How would I change that?

~DS
Gideon Zhi
Guest
« Reply #5 on: May 05, 2007, 12:06:57 pm »

Depends on your text editor, really. I know that Textpad's Save As menu has an option for character encoding.
DarknessSavior
Guest
« Reply #6 on: May 05, 2007, 12:12:37 pm »

I only use Notepad/Wordpad, should I just download textpad, or would there be an option for character encoding in those?

~DS
Gideon Zhi
Guest
« Reply #7 on: May 05, 2007, 12:32:01 pm »

Couldn't say; I haven't used notepad in forever. Wordpad might be injecting funky stuff into your script, though; I certainly recommend against that.
Ryusui
Guest
« Reply #8 on: May 05, 2007, 12:50:03 pm »

Notepad gives you options for ASCII, Unicode or UTF-8.
DarknessSavior
Guest
« Reply #9 on: May 05, 2007, 12:57:40 pm »

And which one should I pick? Gideon said it should be ANSI, and I have NO idea what that means.

~DS
StIoachim
Guest
« Reply #10 on: May 05, 2007, 01:11:51 pm »

Quote from: DarknessSavior on May 05, 2007, 12:57:40 pm
And which one should I pick? Gideon said it should be ANSI, and I have NO idea what that means.

~DS

ASCII should make it, probably...
Ryusui
Guest
« Reply #11 on: May 05, 2007, 01:14:52 pm »

"ANSI" is the American National Standards Institute, and it refers to a metric buttload of different standards: "ANSI C", for instance (the original defined standard for the C language). In this case, it means ASCII; just select it from the drop-down format menu in Notepad's save window.

ASCII is the standard single-byte encoding used since the 1960's...many different character schemes incorporate it, at least in part (Shift-JIS uses the basic 128 characters, more or less).
DarknessSavior
Guest
« Reply #12 on: May 05, 2007, 01:17:33 pm »

I already knew what ASCII and Unicode are, at least, a basic understanding. I just didn't know what ANSI meant. Thanks for the heads up, Ryusui. I'll give that a shot, hopefully it helps. ^.^

Any other ideas as to why Atlas wouldn't insert a file properly?

~DS
Klarth
Guest
« Reply #13 on: May 05, 2007, 01:37:42 pm »

Quote from: DarknessSavior link=topic=3615.msg53200#ms
Any other ideas as to why Atlas wouldn't insert a file properly?
Can you post the errors you received if it failed somehow?  Make sure to be consistent in your case as Gideon tried to point out.

It's possible that it has a casting bug when it comes to casting from signed to unsigned, making bytes with values > 127 (ie, normal English ASCII wouldn't be affected) which I suspected but I can't remember if I tested it back when I thought about it...I'm pretty sure I tested it with extended ASCII characters (ie, accented characters and symbols in ASCII) and it worked though.

Make sure that the right side of the table entry is in the same encoding as the script is in.

Example:
01=<EUC Text>
02=<More EUC>

Where 01 and 02 are both in ASCII.  Might be hard to understand, but the table lib reads the right side of the table entry verbatim whereas the left side has to be ASCII.
« Last Edit: May 05, 2007, 07:56:38 pm by Klarth »
DarknessSavior
Guest
« Reply #14 on: May 10, 2007, 01:32:11 pm »

Took me a while to find it, but I added "> stdout.txt" to it, and it came out with this (thanks for replying, Klarth! Always good to have the guy who wrote the program around. ^.^):

Atlas 1.06 by Klarth
 
 Parsing summary: 0 msecs
 Parsing - 0 error(s), 0 warning(s)
 
 No active table loaded
 Insertion summary: 15 msecs
 Insertion - 0 error(s), 0 warning(s)
 
 +------------------------------------------------------------------------------
 | Total
 |   Start: Line 13  File Position $370708
 |   End: Line 16 File Position $370708
 +------------------------------------------------------------------------------
 | Script size 0
 | Bytes Inserted 0
 |
 | Pointer Listing
 |   General Pointers Written: 0
 +------------------------------------------------------------------------------
 
 Execution time: 15 msecs

It still says there's no active table loaded. -_-

~DS
 
Pages: [1] 2 3 ... 5  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC