The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Emulation & ROM Hacking > Tutorials
Register New Account FAQ/Rules Chat Blogs Mark Forums Read

Notices

Tutorials Looking for a guide to help you out? Then you're in the right place! We've got everything you need, ranging from Mapping to Music!
New threads in this forum are to be approved by a moderator before they are displayed. The thread revival limit does not apply here.



Reply
Thread Tools
  #1  
Unread August 6th, 2009, 09:43 PM
pokemonhacker12345's Avatar
pokemonhacker12345
I am back...
 
Join Date: Nov 2007
Location: Ontario, Canada
Age: 19
Gender: Male
Nature: Modest
Well, I don't know if anyone else figured this out or not.
So I will give it a shot!

Credit to Darthatron for VB 6 Codes.
(http://pokecommunity.com/showthread.php?t=132233)

Now let's begin!
First of all you need the vb 2008 Compatible Modules.
Get them Here : (http://www.mediafire.com/?tzkvduiomfn)

Now to begin!

At the top of your code put this.
Code:
Option Strict Off
Option Explicit On
Imports VB = Microsoft.VisualBasic
I don't know what it does but it works XD

Right under that you should have something like this.
Code:
Friend Class Form1
    Inherits System.Windows.Forms.Form
    Dim LoadedROM As String
That will assign LoadedROM As a string...

now... I assume you have all of the buttons and dropdowns added...
For the open button use this:
Code:
Dim cdgOpen As clsCommonDialog
        cdgOpen = New clsCommonDialog
        LoadedROM = cdgOpen.ShowOpen(Me.Handle.ToInt32, "Open Pokemon NDS ROM...",  , "NDS ROMs (*.nds)|*.nds")
        cmbpoke1.SelectedIndex = CShort("&H" & ReverseHEX(ReadHEX(LoadedROM, 2855304, 2)))
        cmbpoke2.SelectedIndex = CShort("&H" & ReverseHEX(ReadHEX(LoadedROM, 2855308, 2)))
        cmbpoke3.SelectedIndex = CShort("&H" & ReverseHEX(ReadHEX(LoadedROM, 2855312, 2)))
        Text1.Text = ReadHEX(LoadedROM, 12, 4)
        Text2.Text = ReadHEX(LoadedROM, 0, 9)
        Form3.Text1.Text = ReadHEX(LoadedROM, 352, 32500)
Save button:
Code:
WriteHEX(LoadedROM, 2855304, ReverseHEX(VB.Right("0000" & Hex(cmbpoke1.SelectedIndex), 4)))
        WriteHEX(LoadedROM, 2855308, ReverseHEX(VB.Right("0000" & Hex(cmbpoke2.SelectedIndex), 4)))
        WriteHEX(LoadedROM, 2855312, ReverseHEX(VB.Right("0000" & Hex(cmbpoke3.SelectedIndex), 4)))
And there you have it! The code will compile and function in visual basic 2008!!!

Good Luck!

Last edited by Manipulation; April 15th, 2010 at 04:06 PM.
Reply With Quote
  #2  
Unread August 31st, 2009, 10:30 AM
mark3289
Beginning Trainer
 
Join Date: Oct 2007
Gender:
but what does that actually do?
Reply With Quote
  #3  
Unread September 15th, 2009, 11:45 PM
OM3GA Umbr30n's Avatar
OM3GA Umbr30n
Was Mazot2
 
Join Date: Jun 2009
Location: UK
Age: 15
Gender: Male
Nature: Relaxed
Thanks for this it should help me for my tool making :D

This epic failed loads of bugs

correction i epic failed XD

Correction Again Epic Fail imma stick to Visual Basic 6.0 i found a link!
Its in Darthatrons thread!
__________________

Flareon's are Red,
Vaporeon's Blue,
Espeon is my concious,
Umbreon is my life-style

~Umbreon

Last edited by Christos; September 16th, 2009 at 04:20 PM.
Reply With Quote
  #4  
Unread September 20th, 2009, 06:31 PM
.Seth's Avatar
.Seth
.explorer.
 
Join Date: Jun 2008
Location: A capacitor in a power supply board.
Gender: Male
Nature: Quiet
Care to explain how to add the clsCommonDialong and VB6 Hex editing functions?
Reply With Quote
  #5  
Unread September 23rd, 2009, 04:12 AM
pokemonhacker12345's Avatar
pokemonhacker12345
I am back...
 
Join Date: Nov 2007
Location: Ontario, Canada
Age: 19
Gender: Male
Nature: Modest
I forget how you do. Just drag and drop them into the project area. It worked before I am not sure if this works anymore. If you can figure it out go ahead :)
Reply With Quote
  #6  
Unread September 23rd, 2009, 06:33 AM
Wichu's Avatar
Wichu
Project Amethyst
 
Join Date: Sep 2007
Location: North Herts, England
Age: 20
Gender: Male
Nature: Naive
Project -> Add from file..., I think.
The hex editing functions code didn't work for me, by the way. In the end, I just started everything from scratch.

And yes, in a tutorial, you have to say exactly what the code does. Posting a bunch of code, and telling us to add it to our program, is useless if we don't know what it's for.
__________________
Reply With Quote
  #7  
Unread September 28th, 2009, 09:57 AM
justinufer
Learner
 
Join Date: May 2008
Age: 17
Gender: Male
Nature: Relaxed
It's a Starter Editor for D/P. I think you should update the post and put that in it so people know.
Reply With Quote
  #8  
Unread September 28th, 2009, 11:00 AM
justinufer
Learner
 
Join Date: May 2008
Age: 17
Gender: Male
Nature: Relaxed
Also you fix this up a bit. I'm not trying to be a anyoing or anything I'm just trying to help with this.

One thing you got to name the Combo boxs cmbpoke1 cmbpoke2 cmbpoke3 the (name) of those things have tobe each those.

And other things problems with it you should double check it.

The one with the errors that got the small amout is connected with the one with Friend class at the top. And the other two are connected.
Attached Images
File Type: png Error script.png‎ (51.7 KB, 34 views)
File Type: png Errors.png‎ (28.3 KB, 22 views)
File Type: png Script.png‎ (47.0 KB, 22 views)
File Type: png Script error.png‎ (46.8 KB, 22 views)
Reply With Quote
  #9  
Unread September 28th, 2009, 04:15 PM
OM3GA Umbr30n's Avatar
OM3GA Umbr30n
Was Mazot2
 
Join Date: Jun 2009
Location: UK
Age: 15
Gender: Male
Nature: Relaxed
I get the exact same errors
__________________

Flareon's are Red,
Vaporeon's Blue,
Espeon is my concious,
Umbreon is my life-style

~Umbreon
Reply With Quote
  #10  
Unread September 28th, 2009, 11:50 PM
justinufer
Learner
 
Join Date: May 2008
Age: 17
Gender: Male
Nature: Relaxed
I have fixed it up a bit. I have attached pics again for the reasons. And yes this is my first time at doing this kind of stuff but I'm am a very fast learner and good at noticing things. I have also added my file project for anyone who wants to look at it. I am only doing this so i can learn and everyone else.
Attached Images
File Type: png Errors 2.png‎ (46.7 KB, 20 views)
File Type: png Script 2.png‎ (61.0 KB, 22 views)
Attached Files
File Type: rar Test 4.rar‎ (25.5 KB, 11 views)
Reply With Quote
  #11  
Unread October 3rd, 2009, 10:53 PM
OM3GA Umbr30n's Avatar
OM3GA Umbr30n
Was Mazot2
 
Join Date: Jun 2009
Location: UK
Age: 15
Gender: Male
Nature: Relaxed
wow this should help :D now to making my tools

Oh great the form is lost >.> i never win
__________________

Flareon's are Red,
Vaporeon's Blue,
Espeon is my concious,
Umbreon is my life-style

~Umbreon

Last edited by OM3GA Umbr30n; October 3rd, 2009 at 10:58 PM. Reason: Your double post has been automatically merged.
Reply With Quote
  #12  
Unread January 7th, 2010, 06:04 PM
jpower8500
Rom hacker/psp homebrew maker
 
Join Date: Dec 2009
Gender: Male
Nature: Brave
could you make another tutorial(a better one)
Reply With Quote
  #13  
Unread January 7th, 2010, 06:58 PM
Gamer2020's Avatar
Gamer2020
This love is a sickness...
 
Join Date: Jun 2008
Location: Violet city!
Gender: Male
Nature: Bold
Send a message via AIM to Gamer2020 Send a message via Windows Live Messenger to Gamer2020 Send a message via Yahoo to Gamer2020 Send a message via Skype™ to Gamer2020
Quote:
Originally Posted by jpower8500 View Post
could you make another tutorial(a better one)
Use VB6 and follow this tutorial.
http://www.pokecommunity.com/showthread.php?t=132233
__________________

Shadows are born...
Reply With Quote
  #14  
Unread March 8th, 2011, 02:37 PM
P-troizépi's Avatar
P-troizépi
Gold trainer
 
Join Date: May 2010
Location: France
Gender: Male
Nature: Careful
The mediafire link is bad...
__________________
Reply With Quote
  #15  
Unread June 9th, 2011, 07:15 AM
darkdarkrai's Avatar
darkdarkrai
No. 1 World at war fanboy
 
Join Date: Jun 2011
Location: Down the street
Gender: Male
Nature: Jolly
Could you post a tutorial of how to do this in Visual basic 2010?
__________________
Do NOT friend me on xbox! I have my own private xbox account for me and my (real) friends only. If you want to friend me on Xbox, my other account that I will set up in a couple of months is
Called darkdarkrai_97. But I will not be able to join parties, as it
is a free one!

I support



Reply With Quote
  #16  
Unread February 13th, 2013, 12:31 PM
NeoDragonoid
blazing..
 
Join Date: Feb 2013
Gender: Male
Nature: Impish
>>Media fire error.... it dont work.
__________________
http://www.pokecommunity.com/signaturepics/sigpic370335_2.gifBlazing..
Reply With Quote
Reply
Quick Reply

Sponsored Links


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC. The time now is 10:40 PM.


Style by Perdition Haze, artwork by Sa-Dui.
Like our Facebook Page Follow us on TwitterMessage Board Statistics | © 2002 - 2013 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2013 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User posts belong to the user.