What's new

Discussion Project Unity, Community Research Project

c2U3ZW5za2lk

c2U3ZW5za2lk

Enthusiast
Messages
209
Reaction score
103
Points
115
Sin$
0
rally points... meh.



Can't find the dam value declaring offsets/gaps, might do a recursive search. I think these are random.

e: fixed. Using some not great code though :/

Code:
/// <summary>
/// Return All rallypoints and engine calls in every language
/// </summary>
/// <param name="mio">Mojos IO already declared</param>
/// <returns></returns>
public static string[] readMissionRallyPoints(MojosIO mio)
{
string[] rallyPoints = new string[35];

bool rally2 = false;
bool rally3 = false;

int rally2Off = 0;
int rally3Off = 0;

#region rally1
//Mission Start - Omega
mio.Position = 0x125C;
rallyPoints[1] = mio.ReadString(0x85, Encoding.ASCII);

///English
mio.Position = 0x12E1;
rallyPoints[2] = mio.ReadString(0x3E, Encoding.Unicode);

///Japanese
mio.Position = 0x1320;
rallyPoints[3] = mio.ReadString(0x3E, Encoding.Unicode);

///German
mio.Position = 0x1361;
rallyPoints[4] = mio.ReadString(0x3E, Encoding.Unicode);

///French
mio.Position = 0x13A1;
rallyPoints[5] = mio.ReadString(0x3E, Encoding.Unicode);

///Spanish
mio.Position = 0x13E1;
rallyPoints[6] = mio.ReadString(0x3E, Encoding.Unicode);

///Latin American Spanish
mio.Position = 0x1421;
rallyPoints[7] = mio.ReadString(0x3E, Encoding.Unicode);

///Italian
mio.Position = 0x1461;
rallyPoints[8] = mio.ReadString(0x3E, Encoding.Unicode);

///Korean
mio.Position = 0x14A0;
rallyPoints[9] = mio.ReadString(0x3E, Encoding.Unicode);

///Chinese
mio.Position = 0x14E0;
rallyPoints[10] = mio.ReadString(0x3E, Encoding.Unicode);

///Portuguese
mio.Position = 0x1561;
rallyPoints[11] = mio.ReadString(0x3E, Encoding.Unicode);
#endregion

#region checkForRally2&3
for (int i = 0; i < Convert.ToInt32(mio.StreamLength); i++)
{
mio.Position = i;
if (mio.ReadString(0x3E, Encoding.Unicode) == "Rally Point Alpha")
{
rally2 = true;
rally2Off = i;
}

mio.Position = i;
if (mio.ReadString(0x3E, Encoding.Unicode) == "Rally Point Bravo")
{
rally3 = true;
rally3Off = i;
}
}
#endregion

#region rally2
if (rally2 == true)
{
//Rally Point Alpha
mio.Position = (rally2Off - 133);
rallyPoints[12] = mio.ReadString(0x85, Encoding.ASCII);

///English
mio.Position = rally2Off;
rallyPoints[13] = mio.ReadString(0x3E, Encoding.Unicode);

///Japanese
mio.Position = rally2Off + 0x3F;
rallyPoints[14] = mio.ReadString(0x3E, Encoding.Unicode);

///German
mio.Position = rally2Off + 0x80;
rallyPoints[15] = mio.ReadString(0x3E, Encoding.Unicode);

///French
mio.Position = rally2Off + 0xC0;
rallyPoints[16] = mio.ReadString(0x3E, Encoding.Unicode);

///Spanish
mio.Position = rally2Off + 0x100;
rallyPoints[17] = mio.ReadString(0x3E, Encoding.Unicode);

///Latin American Spanish
mio.Position = rally2Off + 0x140;
rallyPoints[18] = mio.ReadString(0x3E, Encoding.Unicode);

///Italian
mio.Position = rally2Off + 0x180;
rallyPoints[19] = mio.ReadString(0x3E, Encoding.Unicode);

///Korean
mio.Position = rally2Off + 0x1BF;
rallyPoints[20] = mio.ReadString(0x3E, Encoding.Unicode);

///Chinese
mio.Position = rally2Off + 0x1FF;
rallyPoints[21] = mio.ReadString(0x3E, Encoding.Unicode);

///Portuguese
mio.Position = rally2Off + 0x280;
rallyPoints[22] = mio.ReadString(0x3E, Encoding.Unicode);
}
#endregion

#region rally3
if (rally3 == true)
{
//Rally Point Bravo
mio.Position = (rally3Off - 133);
rallyPoints[23] = mio.ReadString(0x85, Encoding.ASCII);

///English
mio.Position = rally3Off;
rallyPoints[24] = mio.ReadString(0x3E, Encoding.Unicode);

///Japanese
mio.Position = rally3Off + 0x3F;
rallyPoints[25] = mio.ReadString(0x3E, Encoding.Unicode);

///German
mio.Position = rally3Off + 0x80;
rallyPoints[26] = mio.ReadString(0x3E, Encoding.Unicode);

///French
mio.Position = rally3Off + 0xC0;
rallyPoints[27] = mio.ReadString(0x3E, Encoding.Unicode);

///Spanish
mio.Position = rally3Off + 0x100;
rallyPoints[28] = mio.ReadString(0x3E, Encoding.Unicode);

///Latin American Spanish
mio.Position = rally3Off + 0x140;
rallyPoints[29] = mio.ReadString(0x3E, Encoding.Unicode);

///Italian
mio.Position = rally3Off + 0x180;
rallyPoints[30] = mio.ReadString(0x3E, Encoding.Unicode);

///Korean
mio.Position = rally3Off + 0x1BF;
rallyPoints[31] = mio.ReadString(0x3E, Encoding.Unicode);

///Chinese
mio.Position = rally3Off + 0x1FF;
rallyPoints[32] = mio.ReadString(0x3E, Encoding.Unicode);

///Portuguese
mio.Position = rally3Off + 0x280;
rallyPoints[33] = mio.ReadString(0x3E, Encoding.Unicode);
}
#endregion


if (rallyPoints[24] != null) { rallyPoints[0] = "3"; }
else if (rallyPoints[13] != null) { rallyPoints[0] = "2"; }
else if (rallyPoints[2] != null) { rallyPoints[0] = "1"; }
else { rallyPoints[0] = "0"; }

return rallyPoints;
}
Code:
if(rally2 == true)

LOLSDLOLOLOL
 
ddxcb

ddxcb

Contributor
Messages
1,647
Reaction score
275
Points
285
Sin$
0
lol there is bugs on the app xD

+

I broke the app so no need to login for me :tongue:
 
ddxcb

ddxcb

Contributor
Messages
1,647
Reaction score
275
Points
285
Sin$
0
when opening .mapinfo campaign maps, it errors, as i fix it with nulling out rally point 3?
 
V

VB Programmer

Newbie
Messages
36
Reaction score
0
Points
45
Sin$
0
Is this project still being worked on? It would be nice if this was a sticky that all finds were posted in...
 
Xerax

Xerax

Getting There
Messages
2,262
Reaction score
900
Points
260
Sin$
0
Blast from the past. I'm starting work on this project again, I'm also redesigning the UI while i'm at it.

Anyone want a peek?
 
Xerax

Xerax

Getting There
Messages
2,262
Reaction score
900
Points
260
Sin$
0
No pictures of the main app yet :tongue: Just expect it to follow the same design scheme.

Updater;
untiyinstall.png
 
ManBearPig06

ManBearPig06

The Shiroyasha
Retired
Messages
3,683
Reaction score
1,104
Points
515
Sin$
0
No pictures of the main app yet :tongue: Just expect it to follow the same design scheme.

Updater;
untiyinstall.png
Sweet, Alex (wow that seems weird to say, lol, seemed fine while typing it but reading it back I might stick with xerax). Just out of curiosity, is there supposed to be a way to save mapinfo changes? I seem to think I couldn't save it, but now that I mention it, is your server down right now? I can't seem to start the app.
 
Xerax

Xerax

Getting There
Messages
2,262
Reaction score
900
Points
260
Sin$
0
Sweet, Alex (wow that seems weird to say, lol, seemed fine while typing it but reading it back I might stick with xerax). Just out of curiosity, is there supposed to be a way to save mapinfo changes? I seem to think I couldn't save it, but now that I mention it, is your server down right now? I can't seem to start the app.
Well the entire source code for the main app was on my laptop.. And that's hard drive got wiped when i installed ChromeOS. But luckly i had the SourceCode safe in a rar on my site... Which is corrupt.

I might just drop this project all together.
 
ClarkeOne

ClarkeOne

Getting There
Messages
2,040
Reaction score
202
Points
220
Sin$
0
Are you updating this now that the other person released a reach file rehasher?
If so, wouldn't you be able to bundle the things together?
 
Humzaman

Humzaman

Enthusiast
Messages
180
Reaction score
9
Points
70
Sin$
-7
Well the entire source code for the main app was on my laptop.. And that's hard drive got wiped when i installed ChromeOS. But luckly i had the SourceCode safe in a rar on my site... Which is corrupt.

I might just drop this project all together.
NO! dont drop it! ur Xerax! u can do anything! srsly continue ur awesome
 
Top Bottom
Login
Register