Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] CE-LF2 Dedication Line (Marquee)
#1
In the forum mod, Alectric suggested that we input a dedication line just like the one in Marshall's Collaborative Effort Little Fighter 2 Mod.

Question:

How do you make a dedication line onto the LF2_v2.0 exe, like in CE-LF2?


~Solomon Leung
<div style="background-image:url('http://f.imagehost.org/0086/Fill.png'); filter:alpha(opacity=70); border-top:1px solid #000000; border-right:1px solid #000000; border-left: 1px solid #000000; border-bottom: 1px solid #000000"> <table border="0" width="100%"><tr><td width="500"><img src=http://g.imagehost.org/0170/FORUM_SIGNATURE.png opacity="1" alt="Little Fighter Code Lyoko"></td><td width="30"><img src="http://www.antoninasdesigns.com/images/real-gray-square.gif" width="1" height="100"></td><td><font face=monotype corsiva><font color=#0A298F><font size="4"><b><i>~Solomon Leung</size><br><font size="2">P.S. I Just Lost <a href="http://www.losethegame.org" target="_blank" style="text-decoration: none"><font color=#0A298F>The Game</font></a></b></i></font></font></size></td></tr></table></div>
Reply
Thanks given by:
#2
Making a new line is quite difficult (I haven't manged to make it work properly, either the exe crashes, my line replaces a different existing one, or only the line shows).

The scrolling effect however, is quite easy to achieve.
(code stolen from rammichaels exe)
    ASM-Code:
00446332     FF0D 689F4500  DEC DWORD PTR DS:[459F68] ; jump here
00446338     813D 689F4500 >CMP DWORD PTR DS:[459F68],-3A0
00446342     7F 0A          JG SHORT lf2_no_n.0044634E
00446344     C705 689F4500 >MOV DWORD PTR DS:[459F68],320
0044634E     FF35 689F4500  PUSH DWORD PTR DS:[459F68]
00446354    ^E9 7C0FFEFF    JMP lf2_no_n.004272D5 ;jump back to rest of code


All you have to do is find where it pushes the X cord of the text, jump from there, write that code, and jump back.

Example: http://www.mediafire.com/?jx2djynyzmi


Edit:
Okay, I looked at the code again and I manged to create another line(now that I understand call types, I figured it was cdecl and std, so I had to restore the ESP back to normal).

Anyway updated version:
http://www.mediafire.com/?zwoamitngdd

    ASM-Code:
00446A98   . 53 69 6C 76 61>ASCII "Silva Is God Lik"
00446AA8   . 65 00          ASCII "e",0
.........................................
00446ABA   > 68 90010000    PUSH 190                                 ;  Y cord
00446ABF   . A1 08564500    MOV EAX,DWORD PTR DS:[455608]            ;  move DC handle to eax
00446AC4   . FF0D 689F4500  DEC DWORD PTR DS:[459F68]                ;  decrease X cord
00446ACA   . 813D 689F4500 >CMP DWORD PTR DS:[459F68],-0F0           ;  Check if message is out bounds
00446AD4   . 7F 0A          JG SHORT rawr_scr.00446AE0
00446AD6   . C705 689F4500 >MOV DWORD PTR DS:[459F68],320            ;  move text message back to start
00446AE0   > FF35 689F4500  PUSH DWORD PTR DS:[459F68]               ;  X cord
00446AE6   . 68 FFFF0000    PUSH 0FFFF                               ;  Text Color
00446AEB   . 68 10206000    PUSH rawr_scr.00602010                   ;  Background Color
00446AF0   . 68 986A4400    PUSH rawr_scr.00446A98                   ;  ASCII "Silva Is God Like"
00446AF5   . 50             PUSH EAX                                 ;  DC Handle
00446AF6   . E8 95A7FBFF    CALL rawr_scr.00401290
00446AFB   . 83C4 18        ADD ESP,18                               ;  fix ESP
00446AFE   . 813D F0464500 >CMP DWORD PTR DS:[4546F0],24F            ;  Previous code I over write
00446B08   .^0F8E 9A08FEFF  JLE rawr_scr.004273A8                    ;  Previous code I over write
00446B0E   .^E9 1408FEFF    JMP rawr_scr.00427327                    ;  jmp back
[Image: doty7Xn.gif]

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ʟᴇᴇᴘ.


Reply
Thanks given by:
#3
Sorry for the late post, but it took a little while to understand the coding and get it to work :D. When it worked perfectly, I cheered and temporarily declared this topic solved :D. However later, I came up against a small bug (or problem, whatever).


Problem/Question:

The line doesn't scroll all the way. It resets position before all the words are viewed.

How do you extend the movement of the marquee line so that all the words are viewed before the line resets position?


Please Respond...


~Solomon Leung
<div style="background-image:url('http://f.imagehost.org/0086/Fill.png'); filter:alpha(opacity=70); border-top:1px solid #000000; border-right:1px solid #000000; border-left: 1px solid #000000; border-bottom: 1px solid #000000"> <table border="0" width="100%"><tr><td width="500"><img src=http://g.imagehost.org/0170/FORUM_SIGNATURE.png opacity="1" alt="Little Fighter Code Lyoko"></td><td width="30"><img src="http://www.antoninasdesigns.com/images/real-gray-square.gif" width="1" height="100"></td><td><font face=monotype corsiva><font color=#0A298F><font size="4"><b><i>~Solomon Leung</size><br><font size="2">P.S. I Just Lost <a href="http://www.losethegame.org" target="_blank" style="text-decoration: none"><font color=#0A298F>The Game</font></a></b></i></font></font></size></td></tr></table></div>
Reply
Thanks given by:
#4
CMP DWORD PTR DS:[459F68],-0F0

That checks the left most position of the string(the start). If you're string is long, you will need to increase it.
[Image: doty7Xn.gif]

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ʟᴇᴇᴘ.


Reply
Thanks given by:
#5
YES!! After working out the numbers for like 10 min., I managed to get it to work :D. Problem Finally Solved!

Thanks Again Silva!

Really sorry for such a short post....


~Solomon Leung
<div style="background-image:url('http://f.imagehost.org/0086/Fill.png'); filter:alpha(opacity=70); border-top:1px solid #000000; border-right:1px solid #000000; border-left: 1px solid #000000; border-bottom: 1px solid #000000"> <table border="0" width="100%"><tr><td width="500"><img src=http://g.imagehost.org/0170/FORUM_SIGNATURE.png opacity="1" alt="Little Fighter Code Lyoko"></td><td width="30"><img src="http://www.antoninasdesigns.com/images/real-gray-square.gif" width="1" height="100"></td><td><font face=monotype corsiva><font color=#0A298F><font size="4"><b><i>~Solomon Leung</size><br><font size="2">P.S. I Just Lost <a href="http://www.losethegame.org" target="_blank" style="text-decoration: none"><font color=#0A298F>The Game</font></a></b></i></font></font></size></td></tr></table></div>
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)