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

  • Crusader Kings II Expansion Subscription

    Subscribe to the CK II Expansion and enjoy unlimited access to 13 major expansions and more!


  • Crusader Kings III Available Now!

    The realm rejoices as Paradox Interactive announces the launch of Crusader Kings III, the latest entry in the publisher’s grand strategy role-playing game franchise. Advisors may now jockey for positions of influence and adversaries should save their schemes for another day, because on this day Crusader Kings III can be purchased on Steam, the Paradox Store, and other major online retailers.


    Real Strategy Requires Cunning

Koopatin

First Lieutenant
94 Badges
Jan 10, 2016
276
513
  • Rome: Vae Victis
  • Leviathan: Warships
  • Magicka
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Cities in Motion 2
  • Sengoku
  • Sword of the Stars
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome Gold
  • Warlock: Master of the Arcane
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: Pre-order
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Stellaris: Synthetic Dawn
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Reapers Due
  • Hearts of Iron III
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Dungeonland
  • Europa Universalis III: Chronicles
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Europa Universalis III
  • Europa Universalis IV: El Dorado
  • Supreme Ruler 2020
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV
  • The Showdown Effect
  • Cities: Skylines
  • Stellaris
  • Stellaris: Galaxy Edition
At that point, you might as well make all pops an abstract concept and just have it be an increasing variable that determines everything else through just maths and percentages. If you're going to make some pops "fake", you might as well make all of them "fake" and use a system that doesn't track individuals beyond "X pops, of Y species with Z modifier" all as simple sets of numbers.

true. my thought was that pops are so integral and that people like pops. at least at the start of the game. later when you have 10k.. not so much. Personally, while i liked pops before I could see pops go the way of the dodo. that "compromise" was just meant as appeasement to the pop wanting majority. And as is said. brainstorming.
 
Last edited:

MrFreake_PDX

Major
Community Ambassador
9 Badges
Feb 20, 2020
554
2.880
  • Stellaris
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
What about the horrible mod load times before you even start a game? It has dramatically lengthen since 2.8.

There is an issue with users who are using many (40+) mods. It does seem to be combining these mods into one mega-mod helps if the game "fails" to start. (the game is actually still loading in the background, most times). We're currently investigating whether this is a game issue or a launcher issue. Hope to know more soon.
 
  • 2Like
  • 1
Reactions:

The_Draco

Sergeant
14 Badges
Feb 4, 2018
98
111
30
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Age of Wonders III
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Synthetic Dawn
well, my loading times didn't change on game start from 2.7 to 2.8, i'm using round 15 mods but i'm on a HDD so...i hoped for a little faster gamestart but i'm ok with that, just want to tell you if that may help find the problem xD
 

grommile

Field Marshal
60 Badges
Jun 4, 2011
19.243
21.067
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV
  • Hearts of Iron III Collection
  • Crusader Kings III
  • Hearts of Iron IV: Expansion Pass
  • Tyranny: Archon Edition
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Shadowrun Returns
  • Teleglitch: Die More Edition
  • Victoria 2
  • 500k Club
  • March of the Eagles
  • Europa Universalis IV: Pre-order
  • Knights of Pen and Paper 2
  • Crusader Kings II
  • Europa Universalis III
PDX scripting language and generally DSL is a dead idea.
The interactive fiction literate-programming DSL Inform 7 (compiled to bytecode for the Glulx and Z special-purpose virtual machines) is a much better language for writing parser-based interactive fiction in than any general-purpose language. (There are specific slices of the IF design space where Inform 6 would be easier and/or more performant, but in general Inform 7 is the better choice.)

The visual novel DSL Ren'Py is a much better language for writing visual novels in than any general-purpose language. (It embeds Python for doing complex things, but the core scripting is very definitely a DSL.)

Choice of Games's Choicescript DSL is probably a better tool for writing choose-your-own-adventure games in than any general-purpose language.

But go on, please tell me how DSLs are a dead idea.
 

Neoncaste

Recruit
52 Badges
Feb 4, 2016
6
0
  • Magicka
  • Europa Universalis IV: Pre-order
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Age of Wonders III
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Steel Division: Normandy 44
  • Europa Universalis IV: Mandate of Heaven
  • Steel Division: Normandy 44 Deluxe Edition
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Stellaris
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Golden Century
  • Prison Architect
  • Crusader Kings III
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Common Sense
  • Magicka 2
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Megacorp
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Mare Nostrum
  • Stellaris - Path to Destruction bundle
One of my personal favourite Dev Diaries ever. Really interesting look from a Dev perspective at the scripting.
 

Flying Scorpion

Sergeant
14 Badges
Oct 11, 2020
79
150
  • Magicka
  • Cities: Skylines
  • Stellaris
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
I know this is a bit of an older post, and I'm performing a bit of necromancy here, but this is SUPER HELPFUL. Thank you Caligula for elucidating us modders on how to improve the performance of our scripts. I was performing a lot of checks with a lot of flags in my script, and as the script began to get really inflated, I started wondering "Am I making this more efficient or LESS efficient?" yeah. It was definitely LESS efficient. Anyway thanks again!
 
  • 1
  • 1
Reactions:

The_Draco

Sergeant
14 Badges
Feb 4, 2018
98
111
30
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Age of Wonders III
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Synthetic Dawn
well, i would like to see more posts that gives modders tips and tricks how to make theyr mods better, more efficient and also some informations about how some scripts work, how to mod some difficult parts and also very important, how to avoid overwriting stuff
 
  • 2
Reactions:

Adalack.

Corporal
16 Badges
Mar 8, 2021
46
0
  • Hearts of Iron III
  • Rome Gold
  • Rome: Vae Victis
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Federations
  • Stellaris: Necroids
I myself am using around 23 mods or thereabouts; and for the life of me, it consistently fails to launch- hey, I never even *found* where to download into the machine account mod 2.8 to begin with.
 

MrFreake_PDX

Major
Community Ambassador
9 Badges
Feb 20, 2020
554
2.880
  • Stellaris
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
I myself am using around 23 mods or thereabouts; and for the life of me, it consistently fails to launch- hey, I never even *found* where to download into the machine account mod 2.8 to begin with.

Customer support will gladly help you fix this problem. Go to support.paradoxplaza.com and open a ticket. :)
 

unbeatable101

First Lieutenant
5 Badges
Feb 22, 2020
226
106
  • Cities: Skylines
  • Stellaris: Digital Anniversary Edition
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Cities: Skylines Deluxe Edition
Customer support will gladly help you fix this problem. Go to support.paradoxplaza.com and open a ticket. :)
Your new profile pictures keep tripping me up XD