Thalassicus
Bytes and Nibblers
that's only going to cause headaches. Like where this is going, btw.
that's only going to cause headaches. I like where this is going, btw.
Important difference!

that's only going to cause headaches. Like where this is going, btw.
that's only going to cause headaches. I like where this is going, btw.
True about 'I', but without that pronoun the line can be interpreted as "the name is only going to cause headaches like where this mod is going" which has a totally different meaning!
The only explanation I can think of, it being near 255, is that they have a length for a whole structure in a byte, and there's 7 bytes (or whatevers) used for other stuff.edit: 248 ??
--[[ PragmaOnce(value) usage examples: ensures a block of code is only run once
if PragmaOnce("TU_TurnPers") then
Events.ActivePlayerTurnStartAdd( DoAtTurnStart )
Events.ActivePlayerTurnEndAdd( DoAtTurnEnd )
end
--]]
MapModData.InitializedValue = MapModData.InitializedValue or {}
function PragmaOnce(value)
if not MapModData.InitializedValue[value] then
MapModData.InitializedValue[value] = {}
return true
end
return false
end
Well, I got it working and it hides the starvation notification, but the sound effect and 'glow' on the city still appear, like when I deleted the notification from NotificationPanel.xml. Do you know if it's possible to get rid of those additional effects?
...is there a way to get uniquely identifying information directly?
modinfo key-value pairs from Modding.GetInstalledMods():
"Authors" = string.
"MinCompatibleSaveVersion" = integer-string.
"SpecialThanks" = string.
"Description" = string.
"ReloadUnitSystem" = integer-string (0/1).
"SupportsSinglePlayer" = integer-string (0/1).
"SupportsMultiplayer" = integer-string (0/1).
"SupportsMac" = integer-string (0/1).
"Enabled" = boolean.
"Name" = string.
"ReloadLandmarkSystem" = integer-string (0/1).
"ID" = unique-string.
"AffectsSavedGames" = integer-string (0/1).
"Stability" = string (Experimental/Alpha/Beta) (nil=Stable).
"Version" = integer.
"Homepage" = url-string.