• 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 General News and Announcements
« Previous 1 … 11 12 13 14 15 … 46 Next »
POB changes

Server Time (24h)

Players Online

Active Events - Scoreboard
Kusari Super Alloy Shipments - 680,550 / 2,000,000
LSF Arms Shipments - 84,950 / 2,000,000
LSF Munition Shipments - 67,131 / 2,000,000
Pirate Black Market Shipments - 332,700 / 1,000,000
Dragon Bounties - 8 / 10,000
KOI Bounties - 15 / 10,000
LSF Bounties - 14 / 10,000
Samura Bounties - 4 / 10,000

Latest activity

POB changes
Offline Kazinsal
04-06-2018, 06:12 PM, (This post was last modified: 04-06-2018, 06:17 PM by Kazinsal.)
#38
Wizard
Posts: 4,541
Threads: 230
Joined: Sep 2009

CoreModule::Timer runs every second. The code in it checks to see if the current time in seconds is evenly divisible by set_tick_time (configured with tick_time=# in the base.cfg), and if it isn't, it skips the whole wear and tear/FOW/repair sequence. If it is, the wear and tear happens first, then the repair, then the FOW. I have added another tick timer divisor, set_damage_tick_time (configured with damage_tick_time=# in the base.cfg). That will, after checking to see if the time modulo set_tick_time equals zero, check if the time modulo set_damage_tick time equals zero but only for the wear and tear action. Repair and FOW cycles are unaffected.

The rest of the modules with ::Timer functions are unchanged. They all run on the standard tickrate in set_tick_time.

e: The plugin needs a rework at some point, no doubt. But this was a quick and effective fix to enable exactly what you wanted with a degree of flexibility and took ten minutes. The only reasons the damage tickrate is dependent on the main tickrate are that there's some optimizations involved to skip unnecessary checks for some godawful reason (premature optimization is the devil's workshop) that would be hard to work around while making the damage tickrate completely separate from the main tickrate and that I didn't want to refactor CoreModule::Timer at 2:30am when I had to be up in six hours.

e2: For clarity, damage_tick_time is configured in seconds as well. It just needs to be a whole multiple of tick_time.

Retired, permanently.
Reply  


Messages In This Thread
POB changes - by Skorak - 01-20-2018, 11:57 AM
RE: POB changes - by Thyrzul - 01-20-2018, 11:59 AM
RE: POB changes - by Skorak - 01-20-2018, 12:00 PM
RE: POB changes - by Thyrzul - 01-20-2018, 12:01 PM
RE: POB changes - by Skorak - 01-20-2018, 12:03 PM
RE: POB changes - by Thyrzul - 01-20-2018, 12:07 PM
RE: POB changes - by Skorak - 01-20-2018, 12:15 PM
RE: POB changes - by Thyrzul - 01-20-2018, 12:25 PM
RE: POB changes - by Lythrilux - 01-20-2018, 12:15 PM
RE: POB changes - by Epo - 01-20-2018, 12:16 PM
RE: POB changes - by Skorak - 01-20-2018, 12:28 PM
RE: POB changes - by Thyrzul - 01-20-2018, 12:42 PM
RE: POB changes - by Banned player t202085 - 01-20-2018, 12:53 PM
RE: POB changes - by nOmnomnOm - 01-20-2018, 03:38 PM
RE: POB changes - by Backo - 01-20-2018, 03:43 PM
RE: POB changes - by nOmnomnOm - 01-20-2018, 03:49 PM
RE: POB changes - by Lythrilux - 01-20-2018, 04:41 PM
RE: POB changes - by Laz - 01-20-2018, 03:46 PM
RE: POB changes - by Backo - 01-20-2018, 03:47 PM
RE: POB changes - by Skorak - 01-20-2018, 03:50 PM
RE: POB changes - by nOmnomnOm - 01-20-2018, 03:52 PM
RE: POB changes - by Skorak - 01-20-2018, 03:53 PM
RE: POB changes - by Alestone - 01-20-2018, 04:15 PM
RE: POB changes - by nOmnomnOm - 01-20-2018, 04:18 PM
RE: POB changes - by Thyrzul - 01-20-2018, 04:26 PM
RE: POB changes - by The Sovereign - 01-20-2018, 04:21 PM
RE: POB changes - by Skorak - 01-20-2018, 04:29 PM
RE: POB changes - by Banned player t202085 - 01-20-2018, 06:51 PM
RE: POB changes - by Skorak - 01-20-2018, 06:54 PM
RE: POB changes - by Jack_Henderson - 01-20-2018, 09:10 PM
RE: POB changes - by Skorak - 01-20-2018, 09:13 PM
RE: POB changes - by Kazinsal - 04-06-2018, 08:46 AM
RE: POB changes - by Alley - 04-06-2018, 10:15 AM
RE: POB changes - by Kazinsal - 04-06-2018, 10:23 AM
RE: POB changes - by Skorak - 04-06-2018, 11:08 AM
RE: POB changes - by Kazinsal - 04-06-2018, 11:14 AM
RE: POB changes - by Skorak - 04-06-2018, 11:26 AM
RE: POB changes - by Kazinsal - 04-06-2018, 06:12 PM
RE: POB changes - by evanz - 04-06-2018, 07:17 PM
RE: POB changes - by Kazinsal - 04-06-2018, 07:20 PM
RE: POB changes - by evanz - 04-06-2018, 08:29 PM
RE: POB changes - by Sand-Viper - 04-06-2018, 08:41 PM
RE: POB changes - by Skorak - 04-12-2018, 07:49 PM
RE: POB changes - by JorgeRyan - 04-17-2018, 01:04 AM
RE: POB changes - by ronillon - 04-17-2018, 08:13 PM
RE: POB changes - by Skorak - 04-17-2018, 08:28 PM
RE: POB changes - by St.Denis - 04-17-2018, 08:38 PM
RE: POB changes - by JorgeRyan - 04-17-2018, 08:47 PM
RE: POB changes - by ronillon - 04-17-2018, 09:35 PM
RE: POB changes - by Mercury - 04-19-2018, 08:53 PM
RE: POB changes - by Thyrzul - 04-19-2018, 08:58 PM
RE: POB changes - by LaWey - 04-19-2018, 08:58 PM
RE: POB changes - by Kazinsal - 04-19-2018, 08:59 PM
RE: POB changes - by ronillon - 04-19-2018, 09:25 PM
RE: POB changes - by Karlotta - 04-19-2018, 09:24 PM
RE: POB changes - by Kazinsal - 04-19-2018, 09:29 PM
RE: POB changes - by ronillon - 04-19-2018, 09:36 PM
RE: POB changes - by Kazinsal - 04-19-2018, 09:53 PM
RE: POB changes - by ronillon - 04-19-2018, 10:16 PM
RE: POB changes - by SnakThree - 04-20-2018, 09:59 AM

  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)



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