Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2011-03-30 16:20:03

Cheestendo
Member
Registered: 2011-03-30
Post 1/319

Need help with Scripting(totally noob'no skill at all)

Hello!
I need help with Scripting.
It's probably very easy.
I want to make a script , where you battle with a Magmar 62 level (person event).

and how to insert it? i usually in Johto map press ''Decompile Script'' and then when i compile ,
it just doesn't show as a script.There are no Script number on the event.

lol -> i use Pksvui script editor, i usually just change text with it.

Thank you!

Offline

#2 2011-04-01 16:17:34

Miksy91
Member
Registered: 2010-10-16
Post 312/2,317

Re: Need help with Scripting(totally noob'no skill at all)

You should starts studying hex editing first before moving on to stuff of that kind.
Scripting is much more difficult, even with tools like pksv & johtomap, than hex editing.

Offline

#3 2011-04-01 16:23:45

Cheestendo
Member
Registered: 2011-03-30
Post 2/319

Re: Need help with Scripting(totally noob'no skill at all)

Ok.. but i don't know nothing about hex editing either.... i don't understand how to get the ''table'' , when i see what you need for hex editing something.
Could you Recommend a verrry simple hex editor? And explain me how to get started?

Offline

#4 2011-04-01 16:41:36

Miksy91
Member
Registered: 2010-10-16
Post 313/2,317

Re: Need help with Scripting(totally noob'no skill at all)

Google: "Hex editing" or something like that and perhaps you'll find out.

Offline

#5 2011-04-02 09:01:20

Cheestendo
Member
Registered: 2011-03-30
Post 3/319

Re: Need help with Scripting(totally noob'no skill at all)

that's only perhaps .. but worth a try.

Offline

#6 2011-04-02 10:27:52

Cheestendo
Member
Registered: 2011-03-30
Post 4/319

Re: Need help with Scripting(totally noob'no skill at all)

Ahhhhhh... i just can't understand how to insert or load a pokemon gold table on the hex editor.

Offline

#7 2011-04-02 10:43:03

Cloud
Member
Registered: 2010-12-18
Post 177/285

Re: Need help with Scripting(totally noob'no skill at all)

Start with text editing, then try trainer editing. Both is really simple to learn. That's what i do the first time i came to this board.

By the way, there is no simple hex editor. All hex editor is just the same. But some have bugs and some don't let you to edit the text. I use Windhex just because you can adjust the font size. I always use x16 font, I think i have a problem with my eyes.

Last edited by Cloud (2011-04-02 11:17:12)

Offline

#8 2011-04-02 12:08:34

Cheestendo
Member
Registered: 2011-03-30
Post 5/319

Re: Need help with Scripting(totally noob'no skill at all)

Yeah but how can i insert a pokemon gold table???? ... in Goldfinger i pressed save table.. i found some data about the table .. pasted the data in the saved .tbl file and opened the table! did i do correct? :)

Offline

#9 2011-04-02 13:13:55

Cloud
Member
Registered: 2010-12-18
Post 178/285

Re: Need help with Scripting(totally noob'no skill at all)

Table file is used for editing text. You can't insert it to your Pokemon Gold ROM, AFAIK. I think what you mean is how to open it from hex editor. If you use Windhex, click file then open table#1 and you are done.

Offline

#10 2011-04-03 20:04:32

Cheestendo
Member
Registered: 2011-03-30
Post 6/319

Re: Need help with Scripting(totally noob'no skill at all)

Hmmmm, i don't want to edit the text! How then can i edit like ... trainer pokemon?

Offline

#11 2011-04-03 22:53:01

Cloud
Member
Registered: 2010-12-18
Post 180/285

Re: Need help with Scripting(totally noob'no skill at all)

Offline

#12 2011-04-03 23:11:20

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 523/3,512

Re: Need help with Scripting(totally noob'no skill at all)

save the table file as something you can remember, like Pokemon.tbl , and then go into Goldfinger, load your rom, then go to File-> Open Table -> Table 1 and load the table file there. Now you should be able to search for text

Offline

#13 2011-04-04 15:58:49

Cheestendo
Member
Registered: 2011-03-30
Post 7/319

Re: Need help with Scripting(totally noob'no skill at all)

yeah done that. what's next? the rest seems very difficult .... ;0
and in the search do i have to write like ''SAGE'' in front ? if he is like SAGE NICO?

Offline

#14 2011-04-04 16:03:10

Cheestendo
Member
Registered: 2011-03-30
Post 8/319

Re: Need help with Scripting(totally noob'no skill at all)

I just understood that you can't search for a normal name ;(

Offline

#15 2011-04-04 16:32:36

178/702

Re: Need help with Scripting(totally noob'no skill at all)

Cheestendo wrote:

yeah done that. what's next? the rest seems very difficult .... ;0
and in the search do i have to write like ''SAGE'' in front ? if he is like SAGE NICO?

No, the trainer type is separate. Just search for NICO. Notice that all the sages are grouped together, all the youngsters are grouped together, and so on.

#16 2011-04-04 16:57:34

Tauwasser
Member
Registered: 2010-10-16
Post 124/448

Re: Need help with Scripting(totally noob'no skill at all)

You should tell us exactly what you want to do. If you want to edit trainers, there are better tools than a hex editor available.

Editing trainer data is not related to writing in-game scripts, so this thread title is somewhat misleading.

cYa,

Tauwasser

Offline

#17 2011-04-05 13:34:23

Cheestendo
Member
Registered: 2011-03-30
Post 9/319

Re: Need help with Scripting(totally noob'no skill at all)

@Tauwasser
The main threads title was needing scripting ... but it lead to hexing.

@IIMarckus
Ok when i searched i actually didn't find Nico the sage.. but i found trainer/gym leader names.
how can i edit their pokemon?

Offline

#18 2011-04-05 18:32:16

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 526/3,512

Re: Need help with Scripting(totally noob'no skill at all)

Offline

#19 2011-04-05 22:05:53

Cloud
Member
Registered: 2010-12-18
Post 183/285

Re: Need help with Scripting(totally noob'no skill at all)

Cloud wrote:

>_<

Last edited by Cloud (2011-04-05 22:06:59)

Offline

#20 2011-04-06 05:30:38

Cheestendo
Member
Registered: 2011-03-30
Post 10/319

Re: Need help with Scripting(totally noob'no skill at all)

yh i read it , but still no understanding. i searched for ''RED'',  the offsets i think , those who are on the left the numbers, in the RED there's - 91 84 83 maybe 50 too.
how can those numbers be pokemon's 6 of them.

Offline

#21 2011-04-06 07:12:34

Cloud
Member
Registered: 2010-12-18
Post 184/285

Re: Need help with Scripting(totally noob'no skill at all)

You can search for his trainer type and pokemon if RED doesn't help

Offline

#22 2011-04-06 11:56:23

Cheestendo
Member
Registered: 2011-03-30
Post 11/319

Re: Need help with Scripting(totally noob'no skill at all)

what is his trainer type? ;D

Offline

#23 2011-04-06 18:07:29

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 527/3,512

Re: Need help with Scripting(totally noob'no skill at all)

91 84 83 50 is his name in hex. The rest of his trainer data (type of trainer, pokemon, etc) follows after that.

Offline

#24 2011-04-07 14:41:18

Cheestendo
Member
Registered: 2011-03-30
Post 12/319

Re: Need help with Scripting(totally noob'no skill at all)

Lol i wrote that hex data before in the post. but after that hex data follows - only 86, cause afterwards there's Green's data,and then it's Mom's data.

Offline

#25 2011-04-07 18:48:14

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 530/3,512

Re: Need help with Scripting(totally noob'no skill at all)

Ok you are probably looking in the wrong place. There are slots in the RAM that are initialized to RED, GREEN, and MOM when the game starts, and you have probably found the entries for these. Find the next result and look from there.

EDIT: Ok, looking through the rom i found this, searchign for RED:

1st result= name initialization
2nd result = an entry in decorations
3rd result = a trainer named ALFRED
4th result = a trainer named JARED
5th result = the actual trainer RED we are looking for.

In gold, the offset for this trainer data begins at 0x3B5D5

Last edited by Mateo (2011-04-07 18:50:09)

Offline

Board footer

Powered by FluxBB