Reminder: Internet Explorer 6 or below are NOT supported.





There are currently 56 users playing Freelancer on
34 servers. | April. 23, 2021 |
Browsing this Thread:
1 Anonymous Users
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:
1766
![]() |
oO Exellent! Finally Arts coming to reality
![]() Shoot screen from inside cockpit please!
Posted on: 2015/10/3 20:45
|
|||
Open Sirius Mod | ||||
|
Re: About HUD edit |
||||
---|---|---|---|---|
Not too shy to talk
![]() ![]() Joined:
2011/11/22 17:43 Group:
Registered Users
Posts:
72
![]() |
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
|
|||
|
Re: About HUD edit |
||||
---|---|---|---|---|
Just can't stay away
![]() ![]() Joined:
2008/5/25 23:28 Group:
Registered Users
Posts:
203
![]() |
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
|
|||
|
Re: About HUD edit |
||||
---|---|---|---|---|
Not too shy to talk
![]() ![]() Joined:
2011/11/22 17:43 Group:
Registered Users
Posts:
72
![]() |
Psst, wanna navmap?
![]() ![]() 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.
Posted on: 2016/1/11 5:33
|
|||
|
Re: About HUD edit |
||||
---|---|---|---|---|
Not too shy to talk
![]() ![]() Joined:
2011/11/22 17:43 Group:
Registered Users
Posts:
72
![]() |
Experimental reference .
Code: IHud = interface 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 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. ![]() ![]() ![]() ![]() 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 ![]() ![]() But status makes its flicker on minimizing
Posted on: 2016/1/19 5:49
|
|||
|
Re: About HUD edit |
||||
---|---|---|---|---|
Just popping in
![]() ![]() Joined:
2017/1/1 10:18 Group:
Registered Users
Posts:
1
![]() |
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: 2017/1/1 10:20
|
|||
|
Re: About HUD edit |
||||
---|---|---|---|---|
Not too shy to talk
![]() ![]() Joined:
2011/11/22 17:43 Group:
Registered Users
Posts:
72
![]() |
Quote:
Yeah, I'm living out of the time, 8 months is like 8 days for me ![]()
Posted on: 2017/8/27 7:01
|
|||
|
Re: About HUD edit |
||||
---|---|---|---|---|
Just can't stay away
![]() ![]() Joined:
2012/8/10 14:03 Group:
Registered Users
Posts:
206
![]() |
its looking pretty good so far
Posted on: 2017/8/29 15:58
|
|||
|
Re: About HUD edit |
||||
---|---|---|---|---|
Not too shy to talk
![]() ![]() Joined:
2011/11/22 17:43 Group:
Registered Users
Posts:
72
![]() |
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: 2017/8/29 17:21
|
|||
|
Re: About HUD edit |
||||
---|---|---|---|---|
Not too shy to talk
![]() ![]() Joined:
2011/11/22 17:43 Group:
Registered Users
Posts:
72
![]() |
Don't how 'bout you, but i've made FINAL breaking change. And the change is removed "Facility" suffix, so it is now just Hud.dll that exports _IHud void.
To be consistent i've recompilied HudStatus/HudTarget/HudWeapongGroups that are used in Adv Hud Mod. And included HudShip.dll to activate/deactivate cloak/lights. The currently shipped hud.ini (that should be placed in EXE\) contains settings and descriptions for HudShip (thus customizable a little). And rewrting pascal units as well (do not treat classes as pascal's ones, those are abstract, pure pointer from the game). Thus any method exposed in IDE from TObject are ILLEGAL to use. Will going to redo MultiUniverse in plain pascal from now, with much better readbility and better sections/lists/columns/rows names & defines so everything should become much easier to read and configurate.
Posted on: 2020/4/22 18:48
|
|||
|