Reminder: Internet Explorer 6 or below are NOT supported.





There are currently 36 users playing Freelancer on
42 servers. | September. 21, 2023 |
The Starport Forum Index
>
All Posts (Ruppetthemuppet)
Re: Zero to Hero |
||||
---|---|---|---|---|
Quite a regular
![]() ![]() Joined:
2008/2/14 21:37 From İstanbul, Turkey
Group:
Registered Users Wiki editors $$$ Supporters $$$
Posts:
176
![]() |
Quote:
You need to delete your restart.fl file in your save directory! This is regenerated on launch when it's not there, but is basically a cache of the new player loadout. On Limit Breaking, I've moved away from patches in a hex editor, but if you don't want to compile code for offsets, Hexplorer is a very good option that lets you edit simple data types as well (you'll need to change the default fonts though! For editing values as listed in Limit Breaking, you'll need to edit the data type! In Hexplorer this is under View\Simple Data Types, but ymmv with other editors. Also make sure you're using the new Limit Breaking List! It's got a lot more in it than the one hooked onto the current TSP forum and will eventually replace it: https://wiki.the-starport.net/FL%20Binaries/limit-breaking/ If you have a ton of modding questions, you should totally drop by the Galactic Community Discord, you'll usually get answers a lot quicker for small stuff than on this forum!
Posted on: 5/22 6:32
|
|||
|
Re: Zero to Hero |
||||
---|---|---|---|---|
Quite a regular
![]() ![]() Joined:
2008/2/14 21:37 From İstanbul, Turkey
Group:
Registered Users Wiki editors $$$ Supporters $$$
Posts:
176
![]() |
Quote:
For the displayed + server versions, you'll probably want to change FILEVERSION, PRODUCTVERSION, FileVersion and ProductVersion in all instances. I think the game specifically reads FILEVERSION when looking at what it can/can't connect to, but I generally adjust all of these to be safe! Also I'd avoid using the SDK to build a mod on as if I recall correctly, 1.3 has a few bugs! These days a JFLP-patched install comes fairly close to perfect in terms of fixing vanilla ini issues.
Posted on: 5/20 7:02
|
|||
|
Re: Adding arbitrary new gun classes |
||||
---|---|---|---|---|
Quite a regular
![]() ![]() Joined:
2008/2/14 21:37 From İstanbul, Turkey
Group:
Registered Users Wiki editors $$$ Supporters $$$
Posts:
176
![]() |
Thanks for the pointers, but we're trying to do something entirely different! The way weapon classes are set up in the mod we're working on unfortunately requires more than the 20 or so that Freelancer provides.
The idea here would be to allow users of the plugin to arbitrarily add another set of class 1-10 hard-points, so you'd have hp_gun_special_1-10 , hp_turret_special_1-10 , and then your own hp_gun_new_1-10 , all named and defined appropriately via an ini file!
Posted on: 5/14 14:45
|
|||
|
Adding arbitrary new gun classes |
||||
---|---|---|---|---|
Quite a regular
![]() ![]() Joined:
2008/2/14 21:37 From İstanbul, Turkey
Group:
Registered Users Wiki editors $$$ Supporters $$$
Posts:
176
![]() |
Hi folks,
I've been working with Laz to try and create a plugin that adds arbitrary gun/turret classes to ships and equipment, we were able to get one class working through coincidence (hp_type of 67) but have hit a bit of a roadblock. I know something similar has been done before using Adoxa's engclass plugin. I've attached Laz's cliff notes that explain our specific problem below, as he's not able to currently post to TSP! Does anyone have any pointers for us? Quote:
Posted on: 5/14 11:51
|
|||
|
Re: Trying to understand how NPC spawning works? |
||||
---|---|---|---|---|
Quite a regular
![]() ![]() Joined:
2008/2/14 21:37 From İstanbul, Turkey
Group:
Registered Users Wiki editors $$$ Supporters $$$
Posts:
176
![]() |
Quote:
My bad! I broke the list up into pages by category a few days ago, and in doing so broke the existing link. Here's the new one: https://wiki.the-starport.net/FL%20Binaries/limit-breaking/ Unfortunately the wiki search module isn't as good as I'd hoped, so I may end up recombining it or at least consider new/clearer categories for the offsets here.
Posted on: 5/13 10:34
|
|||
|
Re: Dev's Limit Breaking 101 Techniques |
||||
---|---|---|---|---|
Quite a regular
![]() ![]() Joined:
2008/2/14 21:37 From İstanbul, Turkey
Group:
Registered Users Wiki editors $$$ Supporters $$$
Posts:
176
![]() |
Solved this! The offsets were the correct ones, but were being overridden by an FLHook plugin (that rightly shouldn't have been touching them, given it's purpose!) Many thanks for the help.
Posted on: 5/12 13:16
|
|||
|
Re: Dev's Limit Breaking 101 Techniques |
||||
---|---|---|---|---|
Quite a regular
![]() ![]() Joined:
2008/2/14 21:37 From İstanbul, Turkey
Group:
Registered Users Wiki editors $$$ Supporters $$$
Posts:
176
![]() |
Well this is very strange, these offsets don't seem to change the MP behaviour at all for me! It's 100% the scanner. If I move out of range and back, the NPCs persist at least out to 12-14k. Could there be another value (not scanner range, that's set to 10,000!) that's capping this?
Posted on: 5/5 15:43
|
|||
|
Re: Dev's Limit Breaking 101 Techniques |
||||
---|---|---|---|---|
Quite a regular
![]() ![]() Joined:
2008/2/14 21:37 From İstanbul, Turkey
Group:
Registered Users Wiki editors $$$ Supporters $$$
Posts:
176
![]() |
When I say scanner range, I mean the range at which the player can see NPCs, not the other way around! I've adjusted a few offsets, but it unfortunately appears to be capped in multiplayer and I've not had any luck raising it past that point.
Posted on: 5/4 18:22
|
|||
|
Re: Dev's Limit Breaking 101 Techniques |
||||
---|---|---|---|---|
Quite a regular
![]() ![]() Joined:
2008/2/14 21:37 From İstanbul, Turkey
Group:
Registered Users Wiki editors $$$ Supporters $$$
Posts:
176
![]() |
Another request! it appears that player scanner range for NPCs in MP is capped around 6500m, does anyone know where this value might be changed? It doesn't appear to be in limit breaking, but I feel like I've seen this one floating about before.
Posted on: 5/4 12:12
|
|||
|
Re: Dev's Limit Breaking 101 Techniques |
||||
---|---|---|---|---|
Quite a regular
![]() ![]() Joined:
2008/2/14 21:37 From İstanbul, Turkey
Group:
Registered Users Wiki editors $$$ Supporters $$$
Posts:
176
![]() |
Quote:
This partially works! The hardpoint restriction is enforced when the armour is mounted, which is most of what I wanted. However: the equipment model itself is unfortunately not mounted on the HP. I'll check around a bit and double-check I've not stuffed up implementing the model itself.
Posted on: 5/3 15:46
|
|||
|
Re: Dev's Limit Breaking 101 Techniques |
||||
---|---|---|---|---|
Quite a regular
![]() ![]() Joined:
2008/2/14 21:37 From İstanbul, Turkey
Group:
Registered Users Wiki editors $$$ Supporters $$$
Posts:
176
![]() |
Just a quick request! Have found an offset adjacent to
139B74: use thruster hp_type for cloaking device .Changing 40 17 2D at 139AF0 to C0 DE 26 in common.dll allows me to mount armour equipment on the thruster hp_type, but doesn't actually mount the model on the hardpoint! As a result I can mount an infinite number of armour modules on the hardpoint.It appears there's an extra check involved for equipment marked as internal here, does anyone know if there's an offset that would allow me to mount the armour externally and avoid this issue?
Posted on: 5/3 12:54
|
|||
|
Re: Trying to understand how NPC spawning works? |
||||
---|---|---|---|---|
Quite a regular
![]() ![]() Joined:
2008/2/14 21:37 From İstanbul, Turkey
Group:
Registered Users Wiki editors $$$ Supporters $$$
Posts:
176
![]() |
Absolutely incredible work adoxa, thankyou for this! I've added the SpacePop offset to the Limit Breaking page. Presumably the formula is similar for
relief_time only that it occurs during encounters rather than between them?
Posted on: 5/2 6:59
|
|||
|
Re: Trying to understand how NPC spawning works? |
||||
---|---|---|---|---|
Quite a regular
![]() ![]() Joined:
2008/2/14 21:37 From İstanbul, Turkey
Group:
Registered Users Wiki editors $$$ Supporters $$$
Posts:
176
![]() |
Quote:
So based on discussions in the #modding channel of the community discord (Many thanks to Skotty and Treewyrm): repop_time is basically when pop count is incremented, adding available population to spawnrelief_time is a guaranteed (of sorts) time for next spawnmax_battle_size is the ship count for battles. It's unclear whether or not this battle has to involve the player or not.density_restriction isn't used correctly in vanilla zones and only keys off make_class values set in the encounter. It also limits by ships, not encounters (unlike density)UPDATE: I've done some fairly extensive testing of these with a stopwatch and a single encounter, and it appears that `repop_time` and `relief_time` are not even remotely consistent. Is there a random value added to these before they are used? ANOTHER UPDATE: More stopwatch testing and some discussion: Is it possible repop_time and relief_time are minimums where the further past the listed time you get, the more likely a spawn is to occur? This fits observed behavior, but seems difficult to verify without more rummaging around in the assembly. Skotty has also clued me in on ship_by_npc_arch , which rather than grabbing a ship from a class group, lets you swipe a nickname from npcships.ini! The ship in question must have the corresponding d-class for the zone however, otherwise the game will crash!I've also stumbled across the additional behaviors: goto_guide, dock_guide and patrol_guide. presumably these are used when NPCs are docking/moving between waypoints/etc?
Posted on: 4/14 13:34
|
|||
|
Re: Trying to understand how NPC spawning works? |
||||
---|---|---|---|---|
Quite a regular
![]() ![]() Joined:
2008/2/14 21:37 From İstanbul, Turkey
Group:
Registered Users Wiki editors $$$ Supporters $$$
Posts:
176
![]() |
Wiki updated, planning to do a bit of testing this morning.
Digging through IDA, I've come across a few keys that look like they belong in encounters, but I've never seen before. A little testing seems to suggest that they are not used (Although they might be read?). Has anyone come across these before? Code: longevity Interestingly, arrival isn't always a mandatory key! I ran a few zone encounters that didn't include it, and NPCs spawned/behaved normally. I assume there's some default that's chosen when the value isn't defined (Probably all?)
Posted on: 4/14 7:35
|
|||
|
Re: Trying to understand how NPC spawning works? |
||||
---|---|---|---|---|
Quite a regular
![]() ![]() Joined:
2008/2/14 21:37 From İstanbul, Turkey
Group:
Registered Users Wiki editors $$$ Supporters $$$
Posts:
176
![]() |
Quote:
Do you mean that the - value isn't used? I've observed some weird behavior with patrol paths where crashes can occur if cruise isn't used for arrival. It would be neat to do some testing here (and I intend to!)It's great to know that pop_type is just flat-out unused, I can rule it out as a factor in my testing. I'll update the wiki on that one!
Posted on: 4/12 11:54
|
|||
|