• Home
  • Index
  • Search
  • Download
  • Server Rules
  • House Roleplay Laws
  • Player Utilities
  • Player Help
  • Forum Utilities
  • Returning Player?
  • Toggle Sidebar
Interactive Nav-Map
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 Discovery Development Discovery Developers Forum Discovery Unofficial Development Discovery Mod Content Submissions
« Previous 1 … 3 4 5 6 7 … 28 Next »
Request: /autorepair

Server Time (24h)

Players Online

Active Events - Scoreboard

Latest activity

Request: /autorepair
Offline Remnant
03-31-2018, 01:28 AM,
#4
Member
Posts: 2,206
Threads: 248
Joined: Apr 2012

Alright. So I've done some experimentation with the subject.

The problem with this feature, is that FLHook needs to repair the ship while it's in space. Not when it docks on a station. When a vessel docks, the ship object disappears, meaning that the values cannot be manipulated. I've tried to put the repair (and credit deduction) logic as early as I could under the BaseEnter hook, although the hook doesn't fire soon enough, as the ship is already docked at that point. (Meaning you're kicked from the server instead, since the server doesn't know what to do)

The only solution which I can think of currently, is to hook into when users press the dock button in order to land on a base. If it detects that you're within a certain range of the base you're landing on, it can perform the operations while you're in space, before running a Force-Dock function, landing you on the base shortly after the autorepair does it's work.
The downside to this, the Force-Dock skips the docking animation. I'm not sure how the developers would feel about that.

If the plugin didn't force a user to dock, people could abuse the autorepair, by asking to dock from a close range to the station, and quickly go back to free-flight after being repaired. (Meaning they wouldn't actually dock) - So a no bueno there.

Thoughts?
Reply  


Messages In This Thread
Request: /autorepair - by Vexykin - 03-30-2018, 06:54 PM
RE: Request: /autorepair - by Sand-Viper - 03-30-2018, 06:57 PM
RE: Request: /autorepair - by Remnant - 03-30-2018, 07:05 PM
RE: Request: /autorepair - by Remnant - 03-31-2018, 01:28 AM
RE: Request: /autorepair - by Vexykin - 03-31-2018, 01:45 AM
RE: Request: /autorepair - by Remnant - 03-31-2018, 05:16 AM
RE: Request: /autorepair - by SnakThree - 03-31-2018, 06:55 AM
RE: Request: /autorepair - by Alex. - 03-31-2018, 02:54 PM
RE: Request: /autorepair - by Alex. - 03-31-2018, 03:06 PM
RE: Request: /autorepair - by Remnant - 03-31-2018, 03:19 PM
RE: Request: /autorepair - by Gunbladelad - 03-31-2018, 09:55 PM
RE: Request: /autorepair - by Alex. - 04-30-2018, 01:00 AM

  • 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