Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
63 user(s) are online (25 user(s) are browsing Forum)

Members: 0
Guests: 63

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +10€

Current balance: -300€
(last updated 11/2017)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 58 users playing Freelancer on 33 servers.
November. 23, 2017

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post

« 1 (2)


Re: About HUD edit
Home away from home
Joined:
2008/9/11 15:55
From Somewhere at Moscow
Group:
Registered Users
FLServer Admins
$$$ Supporters $$$
Senior Members
Posts: 1667
Offline
oO Exellent! Finally Arts coming to reality

Shoot screen from inside cockpit please!

Posted on: 2015/10/3 20:45

Edited by HeIIoween on 2015/10/3 20:56:38
Open Sirius Mod
Top
Re: About HUD edit
Not too shy to talk
Joined:
2011/11/22 17:43
Group:
Registered Users
Posts: 51
Offline
HeIIoween, http://i.imgur.com/xhuX9Rp.jpg

Forgotten to mention I don't how to free a control yet. #MemoryLeak

Posted on: 2015/10/4 10:30
Top
Re: About HUD edit
Just can't stay away
Joined:
2008/5/25 23:28
Group:
Registered Users
Posts: 203
Offline
Keep working on it, we have faith in you, a scaleform like HUD would be fancy, gimmicky, but fancy, coupled with other mods to the HUD would make the game look reasonable in this day and age.

Posted on: 2015/10/4 10:43
Top
Re: About HUD edit
Not too shy to talk
Joined:
2011/11/22 17:43
Group:
Registered Users
Posts: 51
Offline
Psst, wanna navmap?
Open in new window

Open in new window


Concept proof. Just calling [edx+$34] which probably means Draw for any control so almost nothing to discuss. I've used here button for navstars and static for others. Total the end.

Had to make almost hundred recompilation because everything inside is completely relative. Radiation sign click change stars Z axis, but ones fly towards the center of the screen. Different model sizes did put another problem to match stuff on the screen etc and so on. DALib either Engine/RenderComp/x86math should have some helpers for handling that kind of stuff, but they're all dword ptr +0xblahblah. For now, only hardcoding.

Attach file:


zip TestMap.zip Size: 21.05 KB; Hits: 157

Posted on: 2016/1/11 5:33
Top
Re: About HUD edit
Not too shy to talk
Joined:
2011/11/22 17:43
Group:
Registered Users
Posts: 51
Offline
Experimental reference .
Code:
  IHud = interface
  ['{45F1E847-B5D0-421E-8E51-E45A3B64A648}']
    procedure Draw(const Sender:IControl);stdcall;
    procedure Update(const Sender:IControl);stdcall;
    procedure Execute(const Sender:IControl);stdcall;
    procedure Terminate(const Sender:IControl);stdcall;
  end;


Low-level and simple. IControl is a simple pointer(class reference, parent at +0x04, next control on same level at +0x08, first child at +0x0C, name (ANSI) at +0x18 and its length at +0x14 etc.)

Draw - sender is one of topmost controls. Its usually contain a traverser for drawing childs and its possible by its visibility to detect when to hide new hud(cinematic cameras/planet/base). Small list:
Code:
HUD_ContactList, HUD_Core, HUD_CruiseProgress, HUD_DamageIndicator, HUD_Maneuvers, HUD_Status,HUD_Target, HUD_Waypoint, NN_MainButton, NN_Pause


Update - sender is one of topmost controls. Originally depends on +0x6C first bit which chooses between call dword ptr [this+0x2C] and call dword ptr [this+0x30]. Looks like a background work.

Execute - sender is button/text. OnClick event. For text click must be +0x35C byte/bit set.

Terminate - sender is any control. Freelancer handles everything automatically and destroys all new /child controls once parent destructor has been executed(closing NavMap, Inventory and others). Better check all new stuff for matching and reset all class.

In dacom.ini first must be HudFacility. It exports:
Code:
function _IHudFacility:IHudFacility;stdcall;


The interface hooks code and simply calls methods in the manner "for i to count".
Code:
  IHudFacility = interface
  ['{F99B8A4F-99F7-4DA6-91EC-74DD3286464A}']
    function AddHud(const Hud:IHud):Boolean;stdcall;
  end;


HudTest implements the useless window with keeping in mind original hardcoded behavior, but escape drops cruise anyway.(idk how to make hotkeys). Manhattan Planet must be selected only. Animation not, but flashing text speed seems to be relying on fps lol.
Open in new window

Open in new window

Open in new window

Open in new window


I know unit is in delphi, bad, but leave news if somebody will decide to attack freelancer so all could use a shared lib for multihud support. No need to multiply implementations, need the only single one.This may serve as a reference.

____________

Blackjack & animation
Open in new window
Open in new window
But status makes its flicker on minimizing

Attach file:


zip Prototype.zip Size: 50.27 KB; Hits: 140
zip HudWeaponGroups.zip Size: 27.67 KB; Hits: 121

Posted on: 2016/1/19 5:49

Edited by WhiskasTM on 2016/1/19 14:10:40
Top
Re: About HUD edit
Just popping in
Joined:
1/1 10:18
Group:
Registered Users
Posts: 1
Offline
I hope this was not given up. I have absolutely no idea how to edit anything other than simple stuff. What you are/were doing is amazing. Is it possible to get the angled windows you have in a few pictures?

Posted on: 1/1 10:20
Top
Re: About HUD edit
Not too shy to talk
Joined:
2011/11/22 17:43
Group:
Registered Users
Posts: 51
Offline
Quote:

Delithor wrote:
I hope this was not given up. I have absolutely no idea how to edit anything other than simple stuff. What you are/were doing is amazing. Is it possible to get the angled windows you have in a few pictures?
I might complete most regarding hud, but it's all about priorities, they control me, even when FL stays #1 for me. Curved elements were never completed, but did attach anyway.

Yeah, I'm living out of the time, 8 months is like 8 days for me

Attach file:


zip ModernHUD.zip Size: 13.17 KB; Hits: 42

Posted on: 8/27 7:01
Top
Re: About HUD edit
Quite a regular
Joined:
2012/8/10 14:03
Group:
Registered Users
Posts: 145
Offline
its looking pretty good so far

Posted on: 8/29 15:58
Top
Re: About HUD edit
Not too shy to talk
Joined:
2011/11/22 17:43
Group:
Registered Users
Posts: 51
Offline
The fact is it can't be completed anyway in standard edit-some-values-in-memory approach. Need a custom drawing directly through Direct3D to get curved text and then implement fixed screen interaction.

(Or A-Z a-z 3db letters with a good amount 3d math to build and place lines of text)

Eventually, we would just end with no-hud hack and drawing everything by ourselves. Sugar dream.

Posted on: 8/29 17:21
Top
« 1 (2)