Posts: 503
Threads: 21
Joined: Jan 2009
Can the names of data files be displayed in the Loading Screen without .dat behind them?
We can create some sort of loading bar by naming data files '|' (||, |||, etc.) using this method.
~JDC.
Thanks given by:
Posts: 1,003
Threads: 3
Joined: Mar 2008
hey! that was NTSD II's Idea^^ lol
no rly, we though about that, too, but still I don't think that's possible
Thanks given by:
Posts: 91
Threads: 14
Joined: Mar 2009
The best would be to display only the name of dat.
(without the way and .dat)
![[Image: OQAAAEUyp1EC4nOaLC7aWRI9F6vMqekYjsZ6ZNLn...66Qif3.jpg]](http://images.orkut.com/orkut/photos/OQAAAEUyp1EC4nOaLC7aWRI9F6vMqekYjsZ6ZNLnAx9xVEnTij2b_TGzDbXutXJE9zqYBz-YC3c_tV45ikyqkwaeosYAm1T1UNnVIj0wFzHbYFIr_C3yI-66Qif3.jpg)
Sorry for my english... 
I'm Brazilian
Thanks given by:
Posts: 1,020
Threads: 61
Joined: Mar 2008
09-11-2009, 04:43 PM
(This post was last modified: 09-11-2009, 04:43 PM by Boop.)
Duh, some mod did this ages ago, without any hex editing >.< " . Just remove the .dat from the files, and change data.txt to not include .dat either.
e.g :
data\davis << (see no .dat).
PS: to the idiot who will say " i think it won't work" , you will get warned  .-
10 ʏᴇᴀʀs sɪɴᴄᴇ ɪʀᴄ ɢᴏᴏᴅ.ɪ ᴡᴀʟᴋ ᴛʜʀᴏᴜɢʜ ᴛʜᴇ ᴇᴍᴘᴛʏ sᴛʀᴇᴇᴛs ᴛʀʏɪɴɢ ᴛᴏ ᴛʜɪɴᴋ ᴏғ sᴏᴍᴇᴛʜɪɴɢ ᴇʟsᴇ ʙᴜᴛ ᴍʏ ᴘᴀᴛʜ ᴀʟᴡᴀʏs ʟᴇᴀᴅs ᴛᴏ ᴛʜᴇ ɪʀᴄ. ɪ sᴛᴀʀᴇ ᴀᴛ ᴛʜᴇ sᴄʀᴇᴇɴ ғᴏʀ ʜᴏᴜʀs ᴀɴᴅ ᴛʀʏ ᴛᴏ sᴜᴍᴍᴏɴ ᴛʜᴇ ɢᴏᴏᴅ ɪʀᴄ. ɪ ᴡᴀᴛᴄʜ ᴏᴛʜᴇʀ ɪʀᴄ ᴄʜᴀɴɴᴇʟs ʙᴜᴛ ɪᴛ ɪs ɴᴏ ɢᴏᴏᴅ. ɪ ᴘᴇsᴛᴇʀ ᴢᴏʀᴛ ᴀɴᴅ ᴛʀʏ ᴛᴏ ʀᴇsɪsᴛ ʜɪs sᴇxɪɴᴇss ʙᴜᴛ ɪᴛ ɪs ᴀʟʟ ᴍᴇᴀɴɪɴɢʟᴇss. ᴛʜᴇ ᴇɴᴅ ɪs ɴᴇᴀʀ.ɪ ᴛʜᴇɴ ᴜsᴜᴀʟʟʏ ʀᴇᴀᴅ sᴏᴍᴇ ᴏʟᴅ ɪʀᴄ ʟᴏɢs ᴀɴᴅ ᴄʀʏ ᴍʏsᴇʟғ ᴛᴏ sʟᴇᴇᴘ.
Thanks given by:
Posts: 1,003
Threads: 3
Joined: Mar 2008
09-11-2009, 05:10 PM
(This post was last modified: 09-11-2009, 05:19 PM by TheNave.)
"I think know it won't work"
:P just tested it, if you delte the .dat from a file and the data.txt, the exe will crash when trying to load that file
@EDIT:
well, then they did something else except that
Thanks given by:
Posts: 1,020
Threads: 61
Joined: Mar 2008
09-12-2009, 08:59 AM
(This post was last modified: 09-12-2009, 09:00 AM by Boop.)
Haha, I was wrong. What they did was call the data files
1%.dat 2%.dat and so on :p.
Well it should be doable. Just search the loading text for the . and replace it with 0(hex, not asci). 0 is used as a string terminator so it should work.
I'll whip up the code if I don't find something better to do within 5 minutes.
Edit: Bah, you can't directly edit the string, because it uses that string to load the file :(. Means you have to copy the string :p. To much effort, someone else do it.
Update:
Alright, I did it. It edits the string, calls the "show loading text" thingy, then modifies the string back. Not the best solution, but it works :D.
ASM-Code:
.data
loadingText db "Silva Rules!!",0
Load dd 00424436h
Load_c dd 00401290h
dotLoc dd ?
.code
Loading proc
;LOCAL string:Str
PUSH 3Ch ; Y cord
PUSH 260h ; X cord
pushad
mov edx, dword ptr ss:[ESP+3Ch]
mov eax,0
looop:
cmp byte ptr ds:[edx+eax],2eh
je rawr
cmp byte ptr ds:[edx+eax],0
je rawrz
inc eax
jmp looop
rawr:
mov byte ptr ds:[edx+eax],0
rawrz:
lea ebx, dword ptr ds:[edx+eax]
mov dotLoc,ebx
popad
CMP EDX,2
MOV DWORD PTR DS:[4511BCh],EDX
JGE a
MOV EDX,DWORD PTR SS:[ESP+1Ch] ;original text
add edx,5 ; skip data\
;LEA EDX,DWORD PTR SS:[loadingText]
MOV EAX,DWORD PTR DS:[455608h]
PUSH 0FF6464h ; text color
PUSH 00601B0Dh ;background color
PUSH EDX
PUSH EAX
JMP return
a: ADD EDX,-5
CMP EDX,2
JA b
MOV ECX,DWORD PTR SS:[ESP+1Ch] ;original text
add ecx,5 ; skip data\
;LEA ECX,DWORD PTR SS:[loadingText]
MOV EDX,DWORD PTR DS:[455608h]
PUSH 0FFFFFFh ;text color
PUSH 00601B0Dh ; background color
PUSH ECX
PUSH EDX
JMP return
b: MOV EAX,DWORD PTR SS:[ESP+1Ch] ;original text
add eax,5 ; skip data\
;LEA EAX,DWORD PTR SS:[loadingText]
MOV ECX,DWORD PTR DS:[455608h]
PUSH 0FFB4B4h ;text color
PUSH 00601B0Dh ;background color
PUSH EAX
PUSH ECX
return:
CALL [Load_c]
push eax
mov eax, dword ptr ds:[dotLoc]
mov byte ptr ds:[eax],2eh
pop eax
JMP Load
Loading endp
|
It also skips the first 5 characters (normally it is data\), if you want it to skip more, or to show the "data\" part you'll have to remove the "add R,5" stuff.
10 ʏᴇᴀʀs sɪɴᴄᴇ ɪʀᴄ ɢᴏᴏᴅ.ɪ ᴡᴀʟᴋ ᴛʜʀᴏᴜɢʜ ᴛʜᴇ ᴇᴍᴘᴛʏ sᴛʀᴇᴇᴛs ᴛʀʏɪɴɢ ᴛᴏ ᴛʜɪɴᴋ ᴏғ sᴏᴍᴇᴛʜɪɴɢ ᴇʟsᴇ ʙᴜᴛ ᴍʏ ᴘᴀᴛʜ ᴀʟᴡᴀʏs ʟᴇᴀᴅs ᴛᴏ ᴛʜᴇ ɪʀᴄ. ɪ sᴛᴀʀᴇ ᴀᴛ ᴛʜᴇ sᴄʀᴇᴇɴ ғᴏʀ ʜᴏᴜʀs ᴀɴᴅ ᴛʀʏ ᴛᴏ sᴜᴍᴍᴏɴ ᴛʜᴇ ɢᴏᴏᴅ ɪʀᴄ. ɪ ᴡᴀᴛᴄʜ ᴏᴛʜᴇʀ ɪʀᴄ ᴄʜᴀɴɴᴇʟs ʙᴜᴛ ɪᴛ ɪs ɴᴏ ɢᴏᴏᴅ. ɪ ᴘᴇsᴛᴇʀ ᴢᴏʀᴛ ᴀɴᴅ ᴛʀʏ ᴛᴏ ʀᴇsɪsᴛ ʜɪs sᴇxɪɴᴇss ʙᴜᴛ ɪᴛ ɪs ᴀʟʟ ᴍᴇᴀɴɪɴɢʟᴇss. ᴛʜᴇ ᴇɴᴅ ɪs ɴᴇᴀʀ.ɪ ᴛʜᴇɴ ᴜsᴜᴀʟʟʏ ʀᴇᴀᴅ sᴏᴍᴇ ᴏʟᴅ ɪʀᴄ ʟᴏɢs ᴀɴᴅ ᴄʀʏ ᴍʏsᴇʟғ ᴛᴏ sʟᴇᴇᴘ.
Posts: 1,003
Threads: 3
Joined: Mar 2008
o.O thanks alot silva! works perfect now!
Thanks given by:
Posts: 656
Threads: 115
Joined: Nov 2008
It does work, I did this like 4 days ago. Sadly if you don't have 100% data files, it can be bit weird, cause it doesn't seem like it's going up by percent.
![[Image: variaboss.png]](http://img844.imageshack.us/img844/470/variaboss.png)
SUPER B*NER: :3
Thanks given by:
Posts: 91
Threads: 14
Joined: Mar 2009
Easy to make and work perfect Silva...
but for skip more folder is the same process?
make you dll?
![[Image: OQAAAEUyp1EC4nOaLC7aWRI9F6vMqekYjsZ6ZNLn...66Qif3.jpg]](http://images.orkut.com/orkut/photos/OQAAAEUyp1EC4nOaLC7aWRI9F6vMqekYjsZ6ZNLnAx9xVEnTij2b_TGzDbXutXJE9zqYBz-YC3c_tV45ikyqkwaeosYAm1T1UNnVIj0wFzHbYFIr_C3yI-66Qif3.jpg)
Sorry for my english... 
I'm Brazilian
Thanks given by:
|