• Home
  • Index
  • Search
  • Download
  • Server Rules
  • House Roleplay Laws
  • Player Utilities
  • Player Help
  • Forum Utilities
  • Returning Player?
  • Toggle Sidebar
Interactive Nav-Map
Interactive DarkMap
Tutorials
New Wiki
ID reference
Restart reference
Players Online
Player Activity
Faction Activity
Player Base Status
Discord Help Channel
DarkStat
Server public configs
POB Administration
Missing Powerplant
Stuck in Connecticut
Account Banned
Lost Ship/Account
POB Restoration
Disconnected
Member List
Forum Stats
Show Team
View New Posts
View Today's Posts
Calendar
Help
Archive Mode




Hi there Guest,  
Existing user?   Sign in    Create account
Login
Username:
Password: Lost Password?
 
  Discovery Gaming Community The Community Freelancer Forum
« Previous 1 … 5 6 7 8 9 … 67 Next »
[Event Tool] - Mass-Solar spawning

Server Time (24h)

Players Online

Active Events - Scoreboard

Latest activity

[Event Tool] - Mass-Solar spawning
Offline Remnant
03-11-2018, 02:38 AM, (This post was last modified: 03-11-2018, 06:57 AM by Remnant of the Old.)
#1
Member
Posts: 2,205
Threads: 247
Joined: Apr 2012

There is some fun functionality with some of the spawning commands. AI can be spawned. Solars also can be spawned. I made more things.



Mass Solar Spawning (Tool)

This is untested. I am 100% sure that this program will work to the specifications of the command syntax listed below. I cannot go ingame and test it myself, however, due to lacking access to the command myself.


What is it?
There exists an (administrator only) command which can spawn solars into space, provided that you fill out the command with the proper information. This is pretty darn tedious, given everything that it requires.

[+]Command syntax
Code:
.custombasecreate <archtype> <loadout> <type> <Posx> <Posy> <Posz> <Rotx> <Roty> <RotZ> <affiliation> <name>
What if you wanted to create a lot of objects at once? What if you wanted to completely customize an empty system with solars for an event? You'd have to type all of that out for every. single. object.

To remedy that issue, I created a little tool which aids in pulling information from the system .ini files, and converts it automatically into an Auto Hotkey script capable of spawning all of the objects in with a single key combination.

How do I use it?
[+]Inquire within..
First things first, you need to prepare all of your objects that you want to spawn. This is done through your favorite System Editor. (Probably Freelancer Mod Studio)

Due to the constraints of the command, you'll have to be careful with what you spawn. I don't THINK you can spawn stars or planets, although who knows. There might be archetype tricks and loadout tricks you can do with that.

You may want to fly around your edited system locally, just to make sure that everything is in it's proper place and looks good.

Once you've inserted all of your new objects into the system, you NEED to give everything new a common prefix regarding the 'name' field. (See screenshot below) - This makes sure that you're only spawning in new objects. The tool will not include objects not matching your prefix, in the macro.

System Editor - Note the prefix in this case, is "event_"
Load the .ini file
Apply the prefix

Save, and you have your script!

Activation Keys

Control + Shift + V - Spawns all of the objects you've prepared
Control + Shift + Z - Deletes all of the objects you've prepared *warning: This is really, really loud. Turn down your volume.

[+]Things to note
  • If you do not insert any rotation values in the editor, they will default to 0, 0, 0
  • If you do not insert a loadout for the object, it will default to null_loadout
  • If you do not insert an object reputation, it will default to fc_neutral
  • Parameter 3 of the command is 'type' - This is PERMANENTLY set to Solar. I do not know the other options. With some refresher (or a pointer to the FLHook plugin) I'll free that up for customization.
  • To name the objects appropriately, I recommend you give them in the editor, an empty infocard value, and override it serverside with the correct name if it's targetable.

Do I have anything else to say?
Yeah. I'm utter garbage at making GUIs. Forgive the really crappy file selector. I probably should have used JavaFX instead of SWING.
I'm also pretty bad at writing documentation. If this is too confusing, I'll take another pass at it later.

Where can I get this tool?
Download me!
Note that this was written in Java, so you'll need java to run it. Sorry!
If any tweaks need to be made, throw me a message, and I'll do such
Reply  
Offline Alex.
03-11-2018, 06:05 PM,
#2
Developer
Posts: 3,938
Threads: 145
Joined: Aug 2009
Staff roles: Server Manager
Coding Dev
Moderator

You should be able to compile a modern version of FLHook and test it out on a local server.
That said I haven't been able to find a record of this command existing - in the latest copy or anywhere in the Git history.

FLHook suggestions
All other dev queries
Please only PM me through the forums for things that need to be private like anticheat etc.
[Image: dI8iG0a.png]
Reply  
Offline Remnant
03-11-2018, 06:51 PM, (This post was last modified: 03-11-2018, 07:01 PM by Remnant of the Old.)
#3
Member
Posts: 2,205
Threads: 247
Joined: Apr 2012

I guarantee that it used to exist. Although as far as I'm aware, the code only exists in the version of FLHook running on this specific server. Not in the public version of FLHook.

Here's some proof from back when
It says 'unknown command' but things are definitely being spawned in. A minor bug I never got around to fixing.

If it really doesn't exist for some reason, let me know and I'll re-write the code and compile it into a plugin DLL.
Reply  
Offline Alley
03-11-2018, 09:23 PM,
#4
Member
Posts: 4,524
Threads: 406
Joined: Jun 2009

Might as well just extend .basecreate if it's nothing but additional parameters and make it so all values at 0 apply default behavior

Laz Wrote: Alley was right.
Reply  
Offline Alex.
03-11-2018, 09:31 PM,
#5
Developer
Posts: 3,938
Threads: 145
Joined: Aug 2009
Staff roles: Server Manager
Coding Dev
Moderator

(03-11-2018, 06:51 PM)Remnant Wrote: I guarantee that it used to exist. Although as far as I'm aware, the code only exists in the version of FLHook running on this specific server. Not in the public version of FLHook.

I checked the non-public repository too.

FLHook suggestions
All other dev queries
Please only PM me through the forums for things that need to be private like anticheat etc.
[Image: dI8iG0a.png]
Reply  
Offline Remnant
03-11-2018, 09:31 PM, (This post was last modified: 03-11-2018, 09:33 PM by Remnant of the Old.)
#6
Member
Posts: 2,205
Threads: 247
Joined: Apr 2012

That's definitely a reasonable idea. I suppose it's up to the people who'll actually be using the command as to what they'll want. The macro generation system is simply a StringBuilder which is appended all of the proper information. If the plugin is changed or extended, the tool is easily updated.

As for an actual update to the FLHook command, if there's something specific which would be easier, I could deal with it if @Alex. has his hands full. Although that'll be up to the people who'd actually be potentially using the functionality. (What they want, how they want it, etc.)



I dunno where it went, then. I'll just write it in from the ground up if it really doesn't exist anymore.
Reply  
Offline Alex.
03-11-2018, 09:43 PM,
#7
Developer
Posts: 3,938
Threads: 145
Joined: Aug 2009
Staff roles: Server Manager
Coding Dev
Moderator

(03-11-2018, 09:31 PM)Remnant Wrote: I dunno where it went, then. I'll just write it in from the ground up if it really doesn't exist anymore.

I checked the history of it too, there has never been an instance of 'custombasecreate'.
Only way I can think of such a thing getting onto the server is if it was:
a) in some text encoding that Git grep/log can't read, or
b) never in the repository at all, if someone decided it was a good idea to go uploading FLHook DLLs to the server without pushing the source to private first.

FLHook suggestions
All other dev queries
Please only PM me through the forums for things that need to be private like anticheat etc.
[Image: dI8iG0a.png]
Reply  


  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)



Powered By MyBB, © 2002-2026 MyBB Group. Theme © 2014 iAndrew & DiscoveryGC
  • Contact Us
  •  Lite mode
Linear Mode
Threaded Mode