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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Gutembergh

Pages: [1]
1
ROM Hacking Discussion / Atla Double Pointers
« on: April 01, 2019, 06:52:53 pm »
Please, someone for the love of Jesus helps me in this. I'm going crazy.
First of all, I'm sorry for English, I'm Brazilian and I do not speak English so well.

I can dumped and insert everything I want without major difficulties, I'm having a problem just inserting duplicate pointers.
For example:

Quote
//POINTER #0 @ $38019 - STRING #0 @ $38217*

#W16($38019)
[BARRET]Barret:Vamos,*novato.[END-0A]

//POINTER #1 @ $3801B - STRING #1 @ $38238*

#W16($3801B)
#W16($3801D)
[GUARDA]Guarda:Intruso![END-0A]


//POINTER #3 @ $3801F - STRING #3 @ $3825C

#W16($3801F)
[BIGGS]Biggs:Uau!*
Você era um*
SOLDIER, eitaa!*
*
Não é todo dia que*
se vê um com os*
AVALANCHE.[END-0A]


As you can see:

Quote
#W16($3801B)
#W16($3801D)
[GUARDA]Guarda:Intruso![END-0A]


was to repeat the same pointer, but he is not doing it. It simply ignores the first and writes the second in the pointers table. This is for all cases.
Can anyone tell me how I can duplicate the same pointers without having to write the same dialog twice?


April 01, 2019, 06:55:03 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
I'm using this to insert in Atlas:

Quote
#VAR(dialogue, TABLE)
#ADDTBL("INSERT.tbl", dialogue)
#ACTIVETBL(dialogue)

#VAR(PTR, CUSTOMPOINTER)
#CREATEPTR(PTR, "LINEAR", $10, 16)

#VAR(PTRTBL, POINTERTABLE)
#PTRTBL(PTRTBL, $38019, 2, PTR)

#AUTOWRITE(PTRTBL, "[END-0A]")
#AUTOWRITE(PTRTBL, "[END-0D]")
#AUTOWRITE(PTRTBL, "[END-00]")

//#HDR($0)//Cabeçalho
#JMP($38217, $3BAA9)

Pages: [1]