Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[UPDATED]"perspective:" Tag in use
#1
Okay, YinYin was one of the people that couldn't get it to work. Well we worked together and I fixed it now.
[Image: yinyin-falcon.gif] Exe now has YinYin's seal of approval, therefore it must work :).


I'm not sure how many of you knew about this, but marti and starsky made a "perspective: " tag in lf2 and left it unused(it is for bgs). Well now I decided to give it some value!

Download:
http://www.mediafire.com/?z4gmnmmzjzn << Updated exe, approved by YinYin.

What it does:
Basically, what ever number you put into the perspective, it spawns the object(drops it from the sky).

example:
    DC-Code:
width: 2400   zboundary: 289 510 perspective: 78


If that is in your bg, then when you bg is loaded, (id)object 78 will be loaded dropped from the sky! :).

This only runs in VS mode... I don't know if it should be a "feature" or a "bug" :D.
[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
#2
Well, actually I had found it before but I didn't know it's a new tag and how it works.
Additionally, I also found "rect32:". I don't know whether this tag has been in 1.9c or not.
It probably means you can fill the area with 32bit color code.
Reply
Thanks given by:
#3
This is a revolutionary EXE discovery!

Now we no longer have to use the long, complicated, and easily glitched-up 'Zwidth Detection System' for unique dynamic backgrounds. We can now simply use Silva's EXE to enable the 'perspective' tag, and that should create a foolproof method for dynamic backgrounds.

Sorry for the 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:
#4
(03-28-2009, 02:55 PM)Lord Silva Wrote:  This only runs in VS mode... I don't know if it should be a "feature" or a "bug" :D.
feature - in any case, always a feature - just gotta mention and sell it as one so noone complains
stage mode can be set up manually anway (like if this object might cause weather effects in normal vs mode you might want it to rain all the time in story/stage mode)

will be testing this in a few minutes :D
gotta test whether i can have multiple perspective tags - whether it drops only once on startup or more often - whether positioning works or whether its random
blahblahblah
(03-28-2009, 03:14 PM)xxtomnyxx Wrote:  It probably means you can fill the area with 32bit color code.
quite sad it doesn work - the rect color system is still the only way - well at least this way my rcp isnt rendered useless yet

maybe that one could be used/enabled aswell?
Reply
Thanks given by:
#5
OMG, this certainly IS revolutionary. I wonder what Marti and Starsky originally planned to use "perspective" for...
~Member of the NTSD team~
[Image: sigk.png]
http://ntsd.open-board.com/
Reply
Thanks given by:
#6
sorry for sounding noobish, but what does it actually do in the game?
something about backgrounds?
can some explain it to me like they were explaining it to someone with no or little knowledge about this stuff?
Reply
Thanks given by:
#7
Enables you to spawn objects within the background, without getting a character or a weapon from the sky to do it.
~Member of the NTSD team~
[Image: sigk.png]
http://ntsd.open-board.com/
Reply
Thanks given by:
#8
OMG that sounds so awesome!
so you can have unique backgrounds, with for example, fire on the ground, that is constantly there? (with some tweaks and things)
that sounds so awesome

EDIT:
just tested it out...i couldnt get it to work. i tried changing the ids and everything, but nothing worked. suggestions?
Reply
Thanks given by:
#9
Eh he's right. I tried to spawn Bandit in HK Coliseum but he never appeared.
~Member of the NTSD team~
[Image: sigk.png]
http://ntsd.open-board.com/
Reply
Thanks given by:
#10

.dat   bg.dat (Size: 2.7 KB / Downloads: 125)

Place in : \bg\sys\ft

Spawns woody in forbidden tower... Works fine for me. Are you sure you are you are modified the correct bg?


Edit: I think I know the problem...

My code doesn't get executed in backgrounds with width under 794(backgrounds which don't scroll).

Explanation:

Lets say width is stored at X. Perspective is stored at X + C. So lets say width is stored at 400 which means perspective is stored at 40C. The problem is, X (400 in the example) is always changing, and somehow the exe through complex thingies knows how to find width (it doesn't ever load/use perspective because its not used :p).To get it to load perspective, I detour from a line which deals with width(at this point I know the location of width in memory), add C to the address( so I know where perspective is), then stored the value of perspective in a static address which I have set. Then when I get it to drop the item(modified version of F8), it reads from the address.

The problem is, the line I detoured from doesn't get executed when the width is less than 794... I think I can fix this because I remember seeing somewhere a line which compares the width with 794. I'm 99% sure that line will always get executed.


Edit 2: just checked on HKC, and it works working fine. Although I've been talking to YinYin and he can't get it to work. This makes me believe something funky is going on.
[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:




Users browsing this thread: 1 Guest(s)