BullyWiiHacks
Welcome dear guest! Very Happy

To start posting and being part of the BWH community, you simply need to register an account or log into an existing one.

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can probably see and download most content provided for regular members even without an account.

Your contributions will be greatly appreciated though, give it a shot and register today! thumbsup

Join the forum, it's quick and easy

BullyWiiHacks
Welcome dear guest! Very Happy

To start posting and being part of the BWH community, you simply need to register an account or log into an existing one.

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can probably see and download most content provided for regular members even without an account.

Your contributions will be greatly appreciated though, give it a shot and register today! thumbsup
BullyWiiHacks
Would you like to react to this message? Create an account in a few clicks or log in to continue.
BullyWiiHacks

Gaming, Modding & Programming

Important reminders:

- Click *HERE* for advanced forum search or check out the text field below on the front page for Google before posting
- NO support via private message (use the forum)
- Write meaningful topic titles
Site Translation
Latest topics
» Wii RAM Hacking: Pointers and ASM
VB IndexOf Xth Value Empty7/23/2024, 1:54 pm by Mac11ngAround

» IBM AIX Assembler Programming Reference - Useful For PPC ASM
VB IndexOf Xth Value Empty7/21/2024, 5:00 pm by Mac11ngAround

» Note to Inactive New Members
VB IndexOf Xth Value Empty7/14/2024, 4:50 am by Mac11ngAround

» Lego Stars Wars: The Complete Saga [RLGE64]
VB IndexOf Xth Value Empty7/14/2024, 4:42 am by Mac11ngAround

» JMaster Duel Bot: A Yu-Gi-Oh! Master Duel Bot and Trainer for Steam
VB IndexOf Xth Value Empty7/13/2024, 11:18 am by Bully@WiiPlaza

» Gecko.NET
VB IndexOf Xth Value Empty7/13/2024, 11:11 am by Bully@WiiPlaza

» How to get a USB Gecko SE
VB IndexOf Xth Value Empty7/13/2024, 11:05 am by Mac11ngAround

» USB Gecko Hacking Tutorials [Ultimate List]
VB IndexOf Xth Value Empty7/13/2024, 10:54 am by Mac11ngAround

» Converting from PAL to NTSC-J (Pokemon Battle Revolution)
VB IndexOf Xth Value Empty7/6/2024, 9:37 am by SnB@BWH

» Making RAM Dumps With Dolphin (No USB Gecko!)
VB IndexOf Xth Value Empty7/6/2024, 9:20 am by SnB@BWH

Search
 
 

Display results as :
 


Rechercher Advanced Search

July 2024
MonTueWedThuFriSatSun
1234567
891011121314
15161718192021
22232425262728
293031    

Calendar Calendar

Country Statistics
Free counters!

You are not connected. Please login or register

VB IndexOf Xth Value

5 posters

Go down  Message [Page 1 of 1]

1Question VB IndexOf Xth Value 6/14/2013, 8:07 am

Hack4Fun

Hack4Fun

Hey everybody. Maybe someone of you knows about Visual Basic? I'm working with VB 2010 and I've a little problem in one of my functions. I'm going to make an porting program for codes^^
Here is my function which finds the Xth Value in one ram dump.
Code:

 Function IndexOfXthContent(ByVal Target As String, ByVal Content As String, Optional ByVal n As Integer = 1) As Integer
        Dim Offset = -1, Idx = 0
        For i = 1 To n
            Offset = Target.IndexOf(Content, Idx)
            If Offset >= 0 Then Idx = Offset + Content.Length Else Exit For
        Next
        Return Offset
    End Function

Most of time it works but sometimes I didn't get any result (It looks like there is no value in the ram dump o.O). All of my other functions work perfectly so that I can find the position and the number of values in one ram dump. But as you may know I have to search for it in another ram dump, too Razz.

Maybe someone have an idea?


_________________
CodeLabs Programing, Webdesigning and more!

2Question Re: VB IndexOf Xth Value 6/14/2013, 9:27 am

CH90

CH90
Expert 3D Animator
Expert 3D Animator

WOW! so you just will need the two RAM Dups to port codes from any game??affraid


_________________
VB IndexOf Xth Value Ch90sonicsign

3Question Re: VB IndexOf Xth Value 6/14/2013, 9:39 pm

Bully@WiiPlaza

Bully@WiiPlaza
 
 

Yes.
You need the code from some region aswell as the ram dump from the source and destination region.


_________________
VB IndexOf Xth Value YBjg74I

4Question Re: VB IndexOf Xth Value 6/16/2013, 5:49 am

Hack4Fun

Hack4Fun

The problem is now solved :DI'm glad to tell you that I'm almost finished with the program because it converts every code correctly. Btw Bully, I think some ported codes(only from shitnbitch are not right).


_________________
CodeLabs Programing, Webdesigning and more!

5Question Re: VB IndexOf Xth Value 6/16/2013, 6:06 am

CH90

CH90
Expert 3D Animator
Expert 3D Animator

awesome news hack! you're great man! I'm definitely going to love this program if you release it Razz


_________________
VB IndexOf Xth Value Ch90sonicsign

6Question Re: VB IndexOf Xth Value 6/16/2013, 6:14 am

TheDetonator

TheDetonator
Trusted Member
Trusted Member

I would love to see the program being released.

7Question Re: VB IndexOf Xth Value 6/16/2013, 6:18 am

juan112

juan112
Trusted Member
Trusted Member

yes men this program would be really helpful Cool

8Question Re: VB IndexOf Xth Value 6/16/2013, 7:06 am

Hack4Fun

Hack4Fun

I'll release it, don't worry ^^. I only have to make an function that the program detectes 04 codes in other lines, too. And 05 codes also need an other code. Maybe I'll make an F2 codetype conversion, too. Smile
I think I'll need 1 - 2 month at maximum.


_________________
CodeLabs Programing, Webdesigning and more!

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum