HelpEditing rotmg.sol in Java

Posts 1–5 of 5 · Page 1 of 1
Editing rotmg.sol in Java
Ok, so I am trying to make a One Click Login much like MuleDump has, only the problem is that when I write to the file, it seems to change the hex randomly every time.

Q: Am I writing to the correct file?
A: Yes.

Q: Am I using the correct conversions?
A: Yes.

Default Account Login Generated .sol Hex:
Code:
00 BF 00 00 00 46 54 43 53 4F 00 04 00 00 00 00 00 05 52 6F 74 4D 47 00 00 00 03 11 50 61 73 73 77 6F 72 64 06 11 70 61 73 73 77 6F 72 64 00 09 47 55 49 44 06 2B 54 65 73 74 41 63 63 6F 75 6E 74 31 40 74 65 73 74 2E 63 6F 6D 00
Default Account Login Generated .sol Converted:
Code:
.¿...FTCSO......****tMG.....Password..password..GUID.+TestAccount1@test.com.
My Account Login .sol Hex:
Code:
2E 2E BF 2E 2E 2E 45 54 43 53 4F 2E 2E 2E 2E 2E 2E 2E 2E 52 6F 74 4D 47 2E 2E 2E 2E 2E 47 55 49 44 2E 29 54 65 73 74 41 63 63 6F 75 6E 74 31 40 74 65 73 74 2E 63 6F 6D 2E 2E 50 61 73 73 77 6F 72 64 2E 2E 74 65 73 74 2E
My Account Login .sol Converted:
Code:
..¿...ETCSO......****tMG.....GUID.)TestAccount1@test.com..Password..test.
The first letter ($TCSO) seems to change all the time.
@Phoenix1123, Seems to change the hex randomly every time? It's hard to know what is wrong exactly since the two are so vastly different. Also code might help deduce the problem.
@Phoenix1123 Have a look at .minerva as it can generate valid Shared Local Objects seamlessly for RotMG. Here's the Actual Spec if you want to implement it: http://wwwimages.adobe.com/www.adobe...ormat-spec.pdf
Here are some libraries that can do that task for you:
Any of the following libraries claim to do the work:

From StackOverflow:
Quote Originally Posted by Phoenix1123 View Post
Ok, so I am trying to make a One Click Login much like MuleDump has, only the problem is that when I write to the file, it seems to change the hex randomly every time.

Q: Am I writing to the correct file?
A: Yes.

Q: Am I using the correct conversions?
A: Yes.

Default Account Login Generated .sol Hex:
Code:
00 BF 00 00 00 46 54 43 53 4F 00 04 00 00 00 00 00 05 52 6F 74 4D 47 00 00 00 03 11 50 61 73 73 77 6F 72 64 06 11 70 61 73 73 77 6F 72 64 00 09 47 55 49 44 06 2B 54 65 73 74 41 63 63 6F 75 6E 74 31 40 74 65 73 74 2E 63 6F 6D 00
Default Account Login Generated .sol Converted:
Code:
.¿...FTCSO......****tMG.....Password..password..GUID.+TestAccount1@test.com.
My Account Login .sol Hex:
Code:
2E 2E BF 2E 2E 2E 45 54 43 53 4F 2E 2E 2E 2E 2E 2E 2E 2E 52 6F 74 4D 47 2E 2E 2E 2E 2E 47 55 49 44 2E 29 54 65 73 74 41 63 63 6F 75 6E 74 31 40 74 65 73 74 2E 63 6F 6D 2E 2E 50 61 73 73 77 6F 72 64 2E 2E 74 65 73 74 2E
My Account Login .sol Converted:
Code:
..¿...ETCSO......****tMG.....GUID.)TestAccount1@test.com..Password..test.
The first letter ($TCSO) seems to change all the time.
Post your source. You're doing something wrong.
-- 5 bytes (discarded)
-- 1 byte size_of_file-6
-- 4 bytes that should contain the string 'TSCO'
-- 7 bytes (discarded)
-- 1 byte that signifies the length of name (X bytes)
-- X bytes name
-- 4 bytes (discarded)

--Element

--Each element has the following structure:

-- 2 bytes length of element name (Y bytes)
-- Y bytes element name
-- 1 byte data type
-- Z bytes data (depending on the data type)
-- 1 byte trailer


--get the soldata.sol file from botmaker mulemaker


Code:
procedure load_soldata()
  integer fn,char,count,size
  sequence bytes

  object ret
  bytes={}
  solformat={}
  fn=open("soldata.sol","rb")
  while 1 do
  	char=getc(fn)
  	if char=-1 then
  	  exit	
  	end if
  	solformat&=char
  end while	

  close(fn)

end procedure
load_soldata()

Code:
procedure create_mule_sol(sequence email, sequence pass, sequence name)
  integer fn
  sequence bytes

    bytes=solformat

    bytes&=6
    bytes&=(length(email)*2)+1
    bytes&=email
    bytes&=0
    bytes&=17
    bytes&="Password"
    bytes&=6
    bytes&=(length(pass)*2)+1
    bytes&=pass
    bytes&=0

    bytes[6]=(length(bytes)-6)


    fn=open("mules\\"&name&".sol","wb")

    for i=1 to length(bytes) do
  	  puts(fn,bytes[i])
    end for


    close(fn)
end procedure
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?