Welcome Guest [Log In] [Register]
Welcome Message
Yoshi says: Hello, and welcome to Yoshi's Lighthouse! This hacking forum is dedicated to the Mario and Luigi video game series.
The second public version of Yoshi Magic has been released, so enjoy what we have to offer while we continue working on the next version. You can download the current version here.

Members who have a post count of 0 for an extended amount of time will eventually be pruned, so please post atleast once.

Welcome to our administration!
Salanewt, the founder of Yoshi's Lighthouse
Teawater, the main developer of Yoshi's Magic. (And probably should receive like 99% credit for it?)
Xiron, our hopefully, activities director, and treasurer.

All of these people have contributed to theme making of themes that weren't specific theirs.

Teawater says: Hello, welcome to our community, if you get bored, don't forget to stop by the chatbox. Otherwise you can visit our affiliates. If you like Golden Sun, you can also stop by GSHC!
Xiron says: Don't like our chatbox? Then come join our Skype group today! For more information, please speak to me.
Welcome to Yoshi Lighthouse. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
Questions/Answers; Doesn't fit in any of the lessons here?
Topic Started: Jul 28 2009, 05:23:45 PM (326 Views)
Posted Image Teawater
Who are you calling an old man?

Here you will post questions that do not fit in any of the lessons taught. I hope your questions get answered. :)
If you ever find an error in any of my reference materials, PLEASE let me know.
Offline Profile Quote Post Goto Top
 
Posted Image Salanewt
Member Avatar
Star Yoshi

I have a very quick question. Do you know how I can make the program edit the text of another program? I need to know for the editor (I know...).

Have a nice day.
:Idleblackyoshi: :Idlewhiteyoshi:
Have a nice day!

Yoshi is the ultimate video game character ever... If you don't believe me, then try beating me in Super Smash Bros. Brawl. My friend code is 3308-4556-9868. My nickname is Yoshi.

To use a sword, /\ and / again.
Offline Profile Quote Post Goto Top
 
Posted Image Teawater
Who are you calling an old man?

Yes, I did it in my program (text file) but I have forgotten.... let me look it up....

STEP 1: FIRST LOAD FILE TO PROGRAM.....

Try adding a Text box to your form. (and change C:\test.txt to whatever file, textfiles work, not sure about any other type? )




Dim FILE_NAME As String = "C:\test.txt"

Dim objReader As New System.IO.StreamReader(FILE_NAME)

TextBox1.Text = objReader.ReadToEnd

objReader.Close()




Source: http://www.homeandlearn.co.uk/NET/nets8p2.html





STEP 2: is save..... but first maybe you would like to try step 1 first, let me know how it works....
If you ever find an error in any of my reference materials, PLEASE let me know.
Offline Profile Quote Post Goto Top
 
Posted Image Salanewt
Member Avatar
Star Yoshi

Oh, thank you. I will see if this works.

EDIT: I have one more question... Keeping in my head the answer to the first question, is it possible to get Visual Basic to only allow one type of file to be opened?

Have a nice day.
:Idleblackyoshi: :Idlewhiteyoshi:
Have a nice day!

Yoshi is the ultimate video game character ever... If you don't believe me, then try beating me in Super Smash Bros. Brawl. My friend code is 3308-4556-9868. My nickname is Yoshi.

To use a sword, /\ and / again.
Offline Profile Quote Post Goto Top
 
Posted Image Teawater
Who are you calling an old man?

Ok, but please note the STEP 1 above does not include that Open Dialog box in my Character 1 RPG, I take it you might want, do you not? (Otherwise your question would not have made sense....)

I have a feeling the answer is yes, it would probably be a "Filter" command, however to quote the code I may have to look it up.
If you ever find an error in any of my reference materials, PLEASE let me know.
Offline Profile Quote Post Goto Top
 
Posted Image Salanewt
Member Avatar
Star Yoshi

Um, just in case your answer is not what I am talking about (and my question does not make sense (although the filter will help quite a bit)), I am thinking of making this program like any other game editor (can only be opened with the related ROM).

Thanks, I will try out the filter.
Have a nice day.
:Idleblackyoshi: :Idlewhiteyoshi:
Have a nice day!

Yoshi is the ultimate video game character ever... If you don't believe me, then try beating me in Super Smash Bros. Brawl. My friend code is 3308-4556-9868. My nickname is Yoshi.

To use a sword, /\ and / again.
Offline Profile Quote Post Goto Top
 
Posted Image Teawater
Who are you calling an old man?

Even though there is a filter command to ( Save as type: FILENAME??.EXTENSION, Example: *.gba )


You could probably check to see if certain text in the file exists (that you don't edit) and if it doesn't cancel the Open...



Post has been edited.
If you ever find an error in any of my reference materials, PLEASE let me know.
Offline Profile Quote Post Goto Top
 
Posted Image Salanewt
Member Avatar
Star Yoshi

Oh, thank you. One last question... Could you please tell me how to use the filter command?

Have a nice day.
:Idleblackyoshi: :Idlewhiteyoshi:
Have a nice day!

Yoshi is the ultimate video game character ever... If you don't believe me, then try beating me in Super Smash Bros. Brawl. My friend code is 3308-4556-9868. My nickname is Yoshi.

To use a sword, /\ and / again.
Offline Profile Quote Post Goto Top
 
Posted Image Teawater
Who are you calling an old man?

openFD.InitialDirectory = "C:\"
openFD.Title = "Open a Text File"
openFD.Filter = "Text Files|*.txt"
openFD.ShowDialog()

where openFD is the name of the Open Dialog Box you put in a form.


Source: http://www.homeandlearn.co.uk/net/nets4p7.html




That is a good example of how filter is used, if you want more extensions....


Example:

openFD.Filter = "Text Files|*.txt|Gameboy Advance Rom|*.gba"


must not be a | at the beginning or end, however the titles and extensions must be separated by |.
If you ever find an error in any of my reference materials, PLEASE let me know.
Offline Profile Quote Post Goto Top
 
Posted Image Salanewt
Member Avatar
Star Yoshi

Oh, thank you for this information. It will probably help me when working on the editor.

Have a nice day.
:Idleblackyoshi: :Idlewhiteyoshi:
Have a nice day!

Yoshi is the ultimate video game character ever... If you don't believe me, then try beating me in Super Smash Bros. Brawl. My friend code is 3308-4556-9868. My nickname is Yoshi.

To use a sword, /\ and / again.
Offline Profile Quote Post Goto Top
 
Posted Image Teawater
Who are you calling an old man?

You are very welcome, let me know how it comes out and if you have anymore additional questions.
If you ever find an error in any of my reference materials, PLEASE let me know.
Offline Profile Quote Post Goto Top
 
Posted Image Salanewt
Member Avatar
Star Yoshi

Hello, I am having a problem right now. A little while ago, I started making the interface of the editor and I saved it as Mario and Luigi Editor. However, when I open it in Visual Basic, I am unable to edit it. The file that does come up is "ToolStripButton1.image". If you know how I can get the program back, I would appreciate it, thank you.

I tried saving the extension as .vb, but it is actually .resx.

Have a nice day.
:Idleblackyoshi: :Idlewhiteyoshi:

Edit: Never mind, thank you. I have thought about it, and I just made a new one.
Have a nice day!

Yoshi is the ultimate video game character ever... If you don't believe me, then try beating me in Super Smash Bros. Brawl. My friend code is 3308-4556-9868. My nickname is Yoshi.

To use a sword, /\ and / again.
Offline Profile Quote Post Goto Top
 
Posted Image Teawater
Who are you calling an old man?

Okay, also it would have helped if you would had uploaded the folders you are having problems with, but since it does not matter anymore, there would be no point.

How are things going so far?
If you ever find an error in any of my reference materials, PLEASE let me know.
Offline Profile Quote Post Goto Top
 
Posted Image Salanewt
Member Avatar
Star Yoshi

Oh, things are doing well, thank you. The editor does not actually do anything yet, but I have the interface ready. This means that I just have to make the program open/save the ROM, read the text, as well as some secret snippets that will help for text editing.

Have a nice day.
:Idleblackyoshi: :Idlewhiteyoshi:
Have a nice day!

Yoshi is the ultimate video game character ever... If you don't believe me, then try beating me in Super Smash Bros. Brawl. My friend code is 3308-4556-9868. My nickname is Yoshi.

To use a sword, /\ and / again.
Offline Profile Quote Post Goto Top
 
Posted Image Teawater
Who are you calling an old man?

I'm pretty much at a brick in the wall for helping until I can finally actually figure out how to get all the data displayed in the program, as you can see in the cbox, I was investigating further into how it can be done, but it has not been solved yet, I don't think.
If you ever find an error in any of my reference materials, PLEASE let me know.
Offline Profile Quote Post Goto Top
 
Posted Image Salanewt
Member Avatar
Star Yoshi

True enough. Anyway, I am going to continue searching tomorrow. If I still can not find anything, then I will release the pre-beta version of the editor (text viewer, if there is text).

Have a nice day.
:Idleblackyoshi: :Idlewhiteyoshi:
Have a nice day!

Yoshi is the ultimate video game character ever... If you don't believe me, then try beating me in Super Smash Bros. Brawl. My friend code is 3308-4556-9868. My nickname is Yoshi.

To use a sword, /\ and / again.
Offline Profile Quote Post Goto Top
 
Posted Image Teawater
Who are you calling an old man?

Cool. You know, since I am trying to help so much is there any possibility that we both could be known as "Author" of it? Just a thought.

Edit

You'd be Primary, I'd be Secondary.


Which is slightly different than "Credits"
If you ever find an error in any of my reference materials, PLEASE let me know.
Offline Profile Quote Post Goto Top
 
Posted Image Salanewt
Member Avatar
Star Yoshi

Well, if I did not know any better, I would say that you read my mind. Anyway, I decided to put you as a member/assistant/maker of the editor back when you joined the HEX testing team (and then decided again when you started testing it). Not to mention all of your help. This is why you will be in the "credits"/about section of the editor.

Have a nice day.
:Idlewhiteyoshi: :Idleblackyoshi:
Have a nice day!

Yoshi is the ultimate video game character ever... If you don't believe me, then try beating me in Super Smash Bros. Brawl. My friend code is 3308-4556-9868. My nickname is Yoshi.

To use a sword, /\ and / again.
Offline Profile Quote Post Goto Top
 
Posted Image Teawater
Who are you calling an old man?

I read your mind? Nice!

......


Oh yeah, I also think that all author's should have the source code before they can even be true Author's (I think, but I'm not sure.)

Edit- I suppse that would be the slight difference, hmm.
If you ever find an error in any of my reference materials, PLEASE let me know.
Offline Profile Quote Post Goto Top
 
Posted Image Salanewt
Member Avatar
Star Yoshi

True. I will supply the source code to all of the other authors when after each version of the editor has been released.

Have a nice day.
:Idleblackyoshi: :Idlewhiteyoshi:
Have a nice day!

Yoshi is the ultimate video game character ever... If you don't believe me, then try beating me in Super Smash Bros. Brawl. My friend code is 3308-4556-9868. My nickname is Yoshi.

To use a sword, /\ and / again.
Offline Profile Quote Post Goto Top
 
Posted Image Teawater
Who are you calling an old man?

Cool.

Now...

BinaryReader
StreamReader
StringReader
TextReader

I am hoping to find a way that uses one of these to see the data of the ROM.

Whether it succeeds or not, will depend on what I do and what I find on the internet.
If you ever find an error in any of my reference materials, PLEASE let me know.
Offline Profile Quote Post Goto Top
 
Posted Image Salanewt
Member Avatar
Star Yoshi

Thank you very much. I have a feeling that your best bet might be "StringReader", since the Hecadecimal values are all strings, this might be easier. Of course, with the HEX editor that I have been using, binary should be possible as well.

Have a nice day.
:Idleblackyoshi: :Idlewhiteyoshi:

Have a nice day!

Yoshi is the ultimate video game character ever... If you don't believe me, then try beating me in Super Smash Bros. Brawl. My friend code is 3308-4556-9868. My nickname is Yoshi.

To use a sword, /\ and / again.
Offline Profile Quote Post Goto Top
 
Posted Image Teawater
Who are you calling an old man?

With that, I suceeded in getting


C:\Users\bls712\Desktop\1277 - Mario And Luigi Superstar Saga (U)(Rising Sun).gba

in the textbox, however I currently have not gotten anything else in the textbox yet.
If you ever find an error in any of my reference materials, PLEASE let me know.
Offline Profile Quote Post Goto Top
 
Posted Image Salanewt
Member Avatar
Star Yoshi

Ah, okay. Is there any way to display certain Hex offsets in the box, and not all of them (to avoid getting the Hexadecimal values for enemy stats, etc.)?

Anyway, I was wondering... Could you please tell me how I make it so everything in my program only appears in the one tab?

Thank you in advance.

Have a nice day.
:Idlewhiteyoshi: :Idleblackyoshi:
Have a nice day!

Yoshi is the ultimate video game character ever... If you don't believe me, then try beating me in Super Smash Bros. Brawl. My friend code is 3308-4556-9868. My nickname is Yoshi.

To use a sword, /\ and / again.
Offline Profile Quote Post Goto Top
 
Posted Image Teawater
Who are you calling an old man?

Tabs- First click on the Tab you are working on, then just drag whatever you want to be shown un that specific tab, and do that with the other tabs, it's all very simple, so you should get the hang of it easily.

Offsets- I have no idea, I have yet to figure that out, makes me think math will be involved.
If you ever find an error in any of my reference materials, PLEASE let me know.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Visual Basic · Next Topic »
Add Reply
  • Pages:
  • 1

Affiliates