Results 1 to 5 of 5
  1. #1
    Phoenix1123's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    182
    Reputation
    10
    Thanks
    285
    My Mood
    Bored

    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@tes*****m.
    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@tes*****m..Password..test.
    The first letter ($TCSO) seems to change all the time.

  2. #2
    nilly's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    2,652
    Reputation
    155
    Thanks
    13,983
    My Mood
    Angelic
    @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.
    Be careful, stray too far from the pack and you'll get lost.

  3. #3
    UltraN00b's Avatar
    Join Date
    May 2012
    Gender
    male
    Location
    Protected v0id
    Posts
    514
    Reputation
    68
    Thanks
    401
    My Mood
    Amazed
    @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: https://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:
    Liked my Post? Say Thanks!
    Before saying that a developer is wrong, think harder. Maybe, YOU are wrong since the dev knows more about his own programs than you do and has more knowledge about what he is doing.
    -- Direct Quote from the XDA-Developers Forums.

  4. #4
    dwdude's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    222
    Reputation
    10
    Thanks
    47
    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@tes*****m.
    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@tes*****m..Password..test.
    The first letter ($TCSO) seems to change all the time.
    Post your source. You're doing something wrong.

  5. #5
    BinaryCoder's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    31
    Reputation
    10
    Thanks
    3
    -- 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

Similar Threads

  1. [Help Request] ISBoxer - Massiv Rage | Help with virtual files & rotmg.sol
    By sejend in forum Realm of the Mad God Help & Requests
    Replies: 2
    Last Post: 08-22-2013, 02:30 PM
  2. Willing to edit Rotmg Videos
    By dsonger in forum Realm of the Mad God Selling / Trading / Buying
    Replies: 3
    Last Post: 06-26-2013, 04:45 AM
  3. [RELEASE][SRC] Java ROTMG classes for Server, Client, Proxy and Base
    By Ikulip in forum Realm of the Mad God Hacks & Cheats
    Replies: 59
    Last Post: 06-26-2012, 12:37 AM
  4. [Share] Head First Java - Second Edition.
    By Jason in forum Coders Lounge
    Replies: 23
    Last Post: 03-15-2011, 03:42 PM
  5. Java Editing code!!!
    By Osama_Farooq in forum CrossFire Tutorials
    Replies: 14
    Last Post: 07-25-2010, 07:44 PM