TUXDB - LINUX GAMING AGGREGATE
by NuSuey
NEWSFEED
▪️ GAMES
▪️ STEAM DECK ▪️ DEALS ▪️ CROWDFUNDING ▪️ COMMUNITY
tuxdb.com logo
Support tuxDB on Patreon
Currently supported by 9 awesome people!

🌟 Special thanks to our amazing supporters:


✨ $10 Tier: [Geeks Love Detail]
🌈 $5 Tier: [Arch Toasty][Benedikt][David Martínez Martí]

Steam ImageSteam ImageSteam ImageSteam ImageSteam ImageSteam Image
Stellaris Dev Diary #182 : The Perils of Scripting and How to Avoid Them

"Hi everyone! I am Caligula, one of Stellaris Content Designers, which means that I do a variety of tasks based around narrative writing and scripting - scripting being our term for doing things that is somewhat similar to programming, but without changing the source code. In other words, I do what modders do (though I have the significant advantage of also being able to peek into the source code and change it around when needed). Every Content Designer has their niche, and mine is that when a particularly complicated system needs to be scripted in (or, more frequently, is giving some sort of trouble - the War in Heaven still gives me nightmares...), I step into the breach. Now, we have a lot of exciting stuff to show off in the weeks and months to come, but for today, inspired by some questions that were asked after the last dev diary, Im going to be writing about the technical side of scripting for modders and aspiring modders, specifically with an eye on what can cause performance problems and how to avoid making bad scripts. The Stellaris scripting language is a very powerful tool, and a lot can be done with it, but first of all, a note of caution: just because something is possible, does not mean it should be done. I cant really stress this enough, because (and I speak from experience here) this attitude will almost certainly end up causing both performance issues and unreadable scripts that you will not be able to disentangle six months later when you realise some part of it is broken. Though it should be borne in mind that doing something in code is, by definition, faster: in code, you can check a single function and be done with it, but if you want it to be accessible through script, theres a fair few necessary functions it has to go through before you get to checking your function (turning the line of script into a code command, checking whether its used in the right scope, etc etc) - hence why some things are hardcoded, and also why hacky solutions to problems can end up being quite bad. So, the first question to consider is, should I really be doing this? But who am I kidding, Im speaking to modders here, so of course you will do it :D So without further ado...

What causes performance issues?


Every time you run a check or execute an effect, this will take a very tiny amount of your computers processing power. With a few exceptions that should be used sparingly (Ill get to those later), this is totally fine and is needed to do anything at all. It is when the check is repeated often, over lots of objects, that problems happen. In practice, this usually means pops are the cause, though running something across all planets in the galaxy is also a pretty bad idea. As a first step, when possible, it is a good idea to control when your script is run. The best way to do this is by setting where events are fired and using on_actions (or firing events from decisions and the like) wherever possible, instead of mean time to happen or, even worse, just setting an event to try and fire every day. If a degree of randomness is needed, one could also fire a hidden event via, say, a yearly pulse and then firing the actual event you want with a random delay (for an example, check out event action.220). " If you wanna read the full post, have a read here!


[ 2020-09-03 09:39:36 CET ] [ Original post ]

Stellaris
Paradox Development Studio Developer
Paradox Interactive Publisher
2016-05-09 Release
GameBillet: 10.50 €
Game News Posts: 542
🎹🖱️Keyboard + Mouse
Very Positive (119848 reviews)
The Game includes VR Support
Public Linux Depots:
  • Linux [153.28 M]
Available DLCs:
  • Stellaris: Infinite Frontiers eBook
  • Stellaris: Plantoids Species Pack
  • Stellaris: Leviathans Story Pack
  • Stellaris: Utopia
  • Stellaris: Nova Edition Upgrade Pack
  • Stellaris: Galaxy Edition Upgrade Pack
  • Stellaris: Anniversary Portraits
  • Stellaris: Synthetic Dawn
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris: Distant Stars Story Pack
  • Stellaris: MegaCorp
  • Stellaris: Ancient Relics Story Pack
  • Stellaris: Lithoids Species Pack
  • Stellaris: Federations
  • Stellaris: Necroids Species Pack
  • Stellaris: Nemesis
  • Stellaris: Aquatics Species Pack
  • Stellaris: Overlord
  • Stellaris: Toxoids Species Pack
  • Stellaris: First Contact Story Pack
  • Stellaris: Galactic Paragons
  • Stellaris: Astral Planes
  • Stellaris: Expansion Subscription
  • Stellaris: The Machine Age
  • Stellaris: Cosmic Storms
  • Stellaris: Grand Archive
  • Stellaris: Rick the Cube Species Portrait
Explore a vast galaxy full of wonder! Paradox Development Studio, makers of the Crusader Kings and Europa Universalis series presents Stellaris, an evolution of the grand strategy genre with space exploration at its core.

Featuring deep strategic gameplay, a rich and enormously diverse selection of alien races and emergent storytelling, Stellaris has engaging challenging gameplay that rewards interstellar exploration as you traverse, discover, interact and learn more about the multitude of species you will encounter during your travels.

Etch your name across the cosmos by forging a galactic empire; colonizing remote planets and integrating alien civilizations. Will you expand through war alone or walk the path of diplomacy to achieve your goals?

Main Feature
  • Deep & Varied Exploration.
  • Enormous procedural galaxies, containing thousands of planets.
  • Explore Anomalies with your heroic Scientist leaders.
  • Infinitely varied races through customization and procedural generation.
  • Advanced Diplomacy system worthy of a Grand Strategy Game.
  • Ship Designer based on a vast array of technologies.
  • Stunning space visuals.

MINIMAL SETUP
  • OS: Ubuntu 20.04 x64
  • Processor: Intel iCore i3-530 or AMD FX-6350Memory: 4 GB RAM
  • Memory: 4 GB RAM
  • Graphics: Nvidia GeForce GTX 460 or AMD ATI Radeon HD 5870 (1GB VRAM). or AMD Radeon RX Vega 11 or Intel HD Graphics 4600Network: Broadband Internet connection
  • Storage: 12 GB available space
RECOMMENDED SETUP
  • OS: Ubuntu 20.04 x64
  • Processor: Intel iCore i5-3570K or AMD Ryzen 5 2400GMemory: 4 GB RAM
  • Memory: 4 GB RAM
  • Graphics: Nvidia GeForce GTX 560 Ti (1GB VRAM) or AMD Radeon R7 370 (2 GB VRAM)Network: Broadband Internet connection
  • Storage: 12 GB available space
GAMEBILLET

[ 6085 ]

20.98$ (30%)
4.19$ (16%)
9.15$ (69%)
2.67$ (79%)
1.64$ (18%)
16.97$ (15%)
4.24$ (15%)
25.19$ (16%)
2.10$ (58%)
16.97$ (15%)
4.80$ (60%)
1.89$ (87%)
9.05$ (70%)
2.59$ (74%)
12.44$ (17%)
4.00$ (90%)
4.12$ (17%)
1.68$ (79%)
10.68$ (69%)
10.07$ (16%)
4.22$ (15%)
33.19$ (17%)
7.07$ (76%)
33.19$ (17%)
8.39$ (16%)
16.79$ (16%)
17.59$ (12%)
2.00$ (80%)
0.90$ (91%)
16.39$ (18%)
GAMERSGATE

[ 3241 ]

0.68$ (83%)
15.0$ (75%)
8.28$ (45%)
0.9$ (92%)
5.0$ (75%)
2.0$ (80%)
4.95$ (67%)
1.0$ (90%)
3.19$ (79%)
2.25$ (77%)
1.58$ (95%)
17.49$ (30%)
6.25$ (75%)
0.9$ (91%)
2.55$ (87%)
13.49$ (10%)
5.31$ (79%)
3.0$ (50%)
9.89$ (34%)
12.0$ (60%)
19.8$ (67%)
7.5$ (75%)
2.25$ (89%)
9.6$ (84%)
9.4$ (53%)
5.5$ (75%)
0.87$ (91%)
6.6$ (78%)
15.99$ (20%)
6.25$ (75%)

FANATICAL BUNDLES

Time left:

8 days, 4 hours, 47 minutes


Time left:

14 days, 4 hours, 47 minutes


Time left:

11 days, 4 hours, 47 minutes


Time left:

11 days, 4 hours, 47 minutes


Time left:

11 days, 4 hours, 47 minutes


Time left:

11 days, 4 hours, 47 minutes


Time left:

11 days, 4 hours, 47 minutes


Time left:

11 days, 4 hours, 47 minutes


Time left:

11 days, 4 hours, 47 minutes


Time left:

11 days, 4 hours, 47 minutes


Time left:

11 days, 4 hours, 47 minutes


Time left:

11 days, 4 hours, 47 minutes


Time left:

11 days, 4 hours, 47 minutes


Time left:

11 days, 4 hours, 47 minutes


Time left:

11 days, 4 hours, 47 minutes


Time left:

36 days, 4 hours, 47 minutes


Time left:

16 days, 4 hours, 47 minutes


Time left:

8 days, 4 hours, 47 minutes


Time left:

43 days, 4 hours, 47 minutes


Time left:

32 days, 4 hours, 47 minutes


Time left:

29 days, 4 hours, 47 minutes


Time left:

37 days, 4 hours, 47 minutes


Time left:

39 days, 4 hours, 47 minutes


HUMBLE BUNDLES

Time left:

2 days, 22 hours, 47 minutes


Time left:

16 days, 22 hours, 47 minutes

by buying games/dlcs from affiliate links you are supporting tuxDB
🔴 LIVE