
Originally Posted by
Remember
Check the forums again..
Their plenty of thread that explain..
Ok so I just used the decompiler and idk what im doing lol. The tutorial is confusing to me but idk if i figured it out heres what i came up with.
import os
import time
try:
os.system('cls')
print('Rustler Decompile V 1.0 By: DayZedGaming')
print('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~')
print('')
print('## Enter Output Location or Leave Blank for C:\code.txt')
location = raw_input('## Location?: ')
if(location == ""):
location = "C:\code.txt"
print('checking loaction')
string = "884 104 105 115 46 105 115 46 116 104 101 46 100 101 102 97 117 108 116 46 116 101 120 116 46 80 108 101 97 115 101 46 101 100 105 116 46 116 104 101 46 102 105 108 101 46 119 105 116 104 46 116 104 101 46 99 111 100 101 46 121 111 117 46 119 105 115 104 46
(not giving the rest of the tostring)
string = string.replace(' ',',')
if(os.path.isfile(location)):
print('real Location')
else:
print('Creating location')
s1 = open(location, 'w')
s1.write(string)
s1.close()
print('File')
print('Checking if file contains code')
if(os.path.getsize(location) > 0):
print('Contains Code!')
else:
print('Empty: Filling File')
s2 = open(location, 'w')
s2.write(string)
s2.close()
print('File Filled')
try:
def listing(file):
f = open(file,'r')
print('opened file')
string = f.read()
print('Read File')
print('File Code:')
print(string)
f.close()
print('File Closed')
string.replace(" ",",")
string.replace("[","")
string.replace(";","")
print('File Modification has started...')
charList = string.split(",")
print('list split')
list = []
for x in charList:
if(x != int):
print('not an int')
x = int(x)
print('made an int')
letter = chr(x)
print(letter, 'Was Made')
if(letter != ' '):
print('Building list...')
list.append(letter)
if(lis*****unt > 0):
print('Current Code:')
print("".join(list))
f = open(location,'w')
f.write("".join(list))
f.close()
print('')
print('')
print('Finished Decompiling')
listing(location)
except Exception as e:
print('Error Running Code...')
except Exception as e2:
print('Incorrect Format: Try Again')
So i copyed this into my exec.sqf because that was what i was decompiling so idk if i did it right?