Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

object rotation?

The general place to discuss MOD''ing Freelancer!

Post Wed Feb 09, 2005 1:32 pm

object rotation?

Hi, Sorry if this has been asked before, but I'm needing to know about object rotation - not spin - the way they're facing.

After trying to get it right, I found that rotation = 0, 0, 0 makes the object (in my case, a docking ring) face 'South' (imagining N, W, S and E are implemented in space ). Rotation = 0, 100, 0 made the ring face East, 0, 200, 0 North. But 0, 300, 0 made it face North-east-ish, which was confusing.

In the tutorial I was following (Giskards, on respawn.co.uk - great), It's set as 0, 137, 0 or something close - which leaves the ring facing north-west-ish.

After this I was thoroughly confused, So I looked in some of the other pre-made systems for some help - and found no rotation set at all (which gave a rotation of 0, 0, 0 when I tried it). Now even more confused, I came here for help.

So if anyone can explain this well, please do!

P.S. As I was following that tutorial, I wanted the ring to face 'west', but couldn't get it.

Edited by - Lethal Dosage on 2/9/2005 1:33:28 PM

Post Wed Feb 09, 2005 2:01 pm

The numbers are values in degrees.
X, Y, Z. X is the horizontal axis from right to left through an object, y the vertical axis and z the horizontal axis from back to front. Positive values mean rotate counter-clockwise, negatives mean rotate clockwise.

Post Thu Feb 10, 2005 11:59 am

Thanks, got it sorted now.

(Don't want to start another new thread, so I'll post here instead)

-----

Argh! Been on the forums for hours searching - I must be really bad at it though, because I can't find what I'm after (again), though I CERTAIN it's here!
So - Can anyone tell me where the tutorial is that says how to change the cruise speed thats shown in game? (Like in normal FL you'll see the speed as 300. If I change the cruise speed, I go faster like I should, but I cant see the actual speed in the little box - it only says 300).

Post Thu Feb 10, 2005 12:20 pm

Some people have achieved it, either by modifying a DLL or the exe file, I am not sure which way they achieved it.

Edited by - Mephistopheles on 2/10/2005 12:42:27 PM

Post Fri Feb 11, 2005 1:28 am

It's a value in resources.dll - use ResHack to open it and search for "300".

Post Fri Feb 11, 2005 11:36 am

Thanks, got into Resource.dll, exept I can't find the entry . "300" comes up with a few entries, none of which are to do with speeds or anything...

Post Sun Feb 13, 2005 11:47 am

So..If anyone finds the right entry, or knows it (e.g. has used it before, and can remember how they found it), could you put it up please?

Post Mon Feb 14, 2005 2:06 am

Luckily for you I saved the instructions how to do it. Forgot the name of the guy who wrote it; I believe he went under the nick "StoneD". It involved some small changes in the EXE file, which, according to some, is not allowed (so maybe the original post has been deleted?).

I saved it as an rtf doc, but of course the layout will not be rendered if I copy-and-paste it, so if it will be an unreadable mess, I can email the rtf to you. But I think it''ll do this way.

It has been some time ago when I did this myself, but if I remember correctly, I used Hex Workshop. I'm not at all an expert (actually had no clue what I was doing and didn't understand most of what he was talking about, but managed to get the desired result anyway) so I can't give any support besides posting the info. Here it is; I hope it 'll suite you.

=-=-=-=-=-=-=-=-=-==-=-=

Found the HUD display speed limit... there's two locations. One for Trade Lanes and one for the Cruise Engines! Actually, I think I found the first one last year before my comp died, but what the hell.
Before I continue, I have already submitted an FLMOD to TLR, however I suspect it won't get approved because it contains an EXE. If that is the case, I'll make a trainer version instead if people want.
For those who want to do it themselves or want some ammo in their struggle to learn Assembler, here's the juice :
Both are in freelancer.exe, so if you want to modify it, you'll have to either do it using some kind of memory editor, a trainer or by hacking a NO-CD patch version like I did :

HUD Speed display limiter - Cruise


.004D592B: D815807E5D00 fcom d,[005D7E80 << Checking against 300.0, real(4) float
.004D5931: DFE0 fstsw ax
.004D5933: F6C441 test ah,041 ;"A"
>004D5936: 0F8575FFFFFF jne .0004D58B1 -----? (2)
.004D593C: DDD8 fstp st(0)
.004D593E: D905807E5D00 fld d,[005D7E80
.004D5944: DC15787E5D00 fcom q,[005D7E78

Where the > is, the HEX offset is 0xD5936. Change "0F85" to "90E9". This changes the JNE (Jump if Not Equal) to simply JuMP.

This code *seems* to be some kind of half-hearted attempt to prevent the CPU from doing something constantly when
it doesn't need to. Previous lines involved in the loop do traverse several DLLs (common.dll, msvcrt.dll, server.dll)
so it may impact low spec comps if you do this. I doubt it though.


HUD Speed display limiter - Trade Lanes

.004D5979: 3DE7030000 cmp eax,0000003E7 ;" _" !! 999 !!
.004D597E: 898644030000 mov [esi[000000344,eax
>004D5984: 7E19 jle .0004D599F -------- (3)
.004D5986: 8B8E3C030000 mov ecx,[esi[00000033C
.004D598C: 8B11 mov edx,[ecx

Where the > is, the HEX offset is 0xD5984. Change "7E" to "EB". This changes the JLE (Jump if Less or Equal) to simply JuMP.

FYI, the actual tradelane speed is 2,500.


Now, I know from past experience that people will ask, so to summarize, do thusly :

I. Fetch thyself an Editor of Hex. Tis not an issue whither it be share, free or pay-ware. An goodly one is HIEW.
II. Readst thou thine manual for thine Editor of Hex.
III. Makest thyself an copy of Freelancer.exe. Test.exe t'would be good.
IV. Open Test.exe in thine Editor of Hex.
V. Shouldst thou desire to remove yonder Cruise limit, instruct thine Editor of Hex to go to this Offset : D5936
VI. At this location, thou wilst find two bytes, 0F and 85. Change to 90 and E9.
VII. Shouldst thou desire to remove yonder Trade Lane limit, instruct thine Editor of Hex to go to this Offset : D5984
VIII. At this location, thou wilst find but a single byte, and it shalt be 7E. Change this to EB.
IX. Savest thine changes.
X. Quiteth thou from thine Editor of Hex.
XI. Clicketh doubly so upon yonder Test.exe.
XII. Play.

Didn't think I'd make it *that* easy, did you?
BTW, I've been watching a certain Monty Python film recently. FYI, etc. ;D




Edited by - moonhead on 2/14/2005 4:51:23 AM

Post Mon Feb 14, 2005 8:43 am

Thanks, will try it - sounds complicated though (doesn't actually tell you what you are doing etc.)

Post Mon Feb 14, 2005 8:55 am

Hmmm....

I'm gonna wait for the 'official' decision on this one. Playing with the EXE is a BIG no-no when modding any game, especially MS ones. Even small changes like that could be classed as sacrilidge. So can a mod tell us what they think please?

Post Mon Feb 14, 2005 10:17 am

@ Lethal Dosage : simply follow the steps from I to XII


@ devineman : I can remember having read some similar thoughts. although I don't think it was with regards to this topic. The changes do not actually alter the game, just cause some slight changes in its appearance. But actually I have no idea what the 'official' opinion is, and, like you, are curious to know. If the posting is a problem, I'll remove it (if a moderator has not already done that by then.)

Would be a pity, because the speedometer limit really sucks.

Post Mon Feb 14, 2005 5:41 pm

To all,

Decision pending...

Harrier

Post Fri Mar 04, 2005 8:11 pm

Sorry to bring this up but has any decision been made on this yet?

Post Fri Mar 04, 2005 9:25 pm

devineman,

If I understand correctly any hacking of the .exe (s) is a no no... However, version change numbers are set/edited in the .exe files and is used to diferentiate mods,.. so while the subject is still here post away.. if it gets too extensive then the thread may be locked or deleted.. but for the moment continue..

Harrier

Post Sat Mar 05, 2005 4:18 am

Thanks Harrier

I'm close to release and wanted to implement this but this ones a bit 'dodgy' and didn't want my mod to be taken off due to this one little thing. So I'm a coward and will wait for other people to do it first basically

Return to Freelancer General Editing Forum