Logo Platform
logo amplifiers simplified

modding bugs

Reply
Copied to clipboard!
12 years ago
Aug 19, 2012, 3:21:22 PM
Hupailija wrote:
Actually it was fairly easy to add several planets smiley: biggrin oh and ability to terraform to those too.


Have you verified which of the existing buildings can be built on these planets and which cannot? And which ones the AI will build on these planets? Adding them may be relatively easy, but I don't think getting everything to work properly with them is easy.
0Send private message
12 years ago
Sep 8, 2012, 4:55:31 PM
Thanks for releasing the icon pack. I have one bug to report, and one suggestion.



Bug: some icons are missing from the icon pack. Specifically, StarSystemImprovementUniqueHisshoLarge, which is used in the tech tree hover help. The other icons like that are also missing. I am not sure if there is any other place where the large versions of these are displayed, but for certain that one is missing.



Suggestion: The directory structure of the icon pack does not match, at all, the directory structure of the game. This means that I need to carefully study the directory path in the xml file, and then manually create my own directory path in my mod. This way, I can make graphical changes without requiring xml changes. For example, I want to recolor the icon for the hissho-specific technology Efficient Shielding (unlocks destroyer). I do not want to change the xml file for such a small change. So, I find the icon in the resource pack: Technologies/TechnologyE04HisshoSmall. Then I lookup the definition in TechnologyExpansion.xml: Gui/DynamicBitmaps/Technologies/TechnologyE04HisshoSmall. Then I create multiple extra directory layers in my mod, so that I don't need to change the xml. If the resource pack had the same directory structure as the game, this would be much easier.
0Send private message
12 years ago
Sep 1, 2012, 3:57:43 PM
The last three releases have all changed the galaxy generator. One of my mods "more anomalies" does not change the galaxy generator, but it does change one of the xml files under plugins\galaxygenerator. I know you don't consider the following behavior a bug, but I do. In order to mod one file inside plugins\galaxygenerator, a modder is forced to include the entire contents of the directory, including the galaxy generator dll. Even with standalone=false. So when you change anything in the plugins\galaxygenerator directory, you break all mods that do this.



Please change this, so that a mod can include only one xml file instead of all the contents.



Also, please clearly identify in your release notes when you break all these mods. For example, you broke them in 1.0.14, 1.0.17, and 1.0.18, which is three times in two weeks. The release notes for 1.0.14 and 1.0.17 don't mention anything about this. In 1.0.18 you at least mention that the galaxy generator is changed, but you mention a performance improvement, not a format change. Even once you support "standalone=false" in the plugins directory, this is still important for mods such as alternativ galaxy generator.



We understand that to provide rapid feedback, you need to make these changes. But every time I have to go back and explore every single mod to figure out if you broke it without mentioning a change in the release notes, my willingness to port the mod to the new version decreases.
0Send private message
12 years ago
Aug 29, 2012, 3:39:39 PM
Grubsnik wrote:
after 1.0.16

in StarSystemImprovements.xml will only block you from building an improvement, but still display it to a user, is this intentional, or did something break in my minimod?


I have noticed this as well, but actually I noticed it before the patch. Only sometimes. I had systems with no applicable planets, but a food item like Sustainable Farms was displayed anyway. I could click it, but there would be no reaction, it was not added to the build queue. I did not try to reproduce or understand it.
0Send private message
12 years ago
Aug 29, 2012, 7:34:38 AM
after 1.0.16

in StarSystemImprovements.xml will only block you from building an improvement, but still display it to a user, is this intentional, or did something break in my minimod?
0Send private message
12 years ago
Aug 28, 2012, 1:29:09 PM
thashepherd wrote:
You're probably right about that, davea. At this stage I think we'd rather have developers than translators anyway. Translating some of the english vocalizations I've done is going to be....difficult. How the hell do you say "Anti-Baryon Gravitophoric Proximity Annihilation Point Defense System" in French? (German has a word for everything)




Système Gravitophorique Anti-Baryon de Défense Rapprochée à Annihilation de Proximité (though the Point Defence / Proximity Annihilation qualifiers sounds a little be redundant to me). Or you could go with the CIWS denomination which includes most of point-defence systems in the Navy.



smiley: wink
0Send private message
12 years ago
Aug 28, 2012, 4:34:30 AM
Ok another bug and one I doubt any one knows about.



[CODE]







TargetProperty="Defense"

OperationType="Addition"

BinaryOperationType="Multiplication"

Right="$(Population)"

Left="50"

Path="../ClassStarSystem"

BindOnSource="false"/>





[/CODE]



Ok this works fine and in the vanilla game doesn't seem buggy, however



[CODE]

LOGISTICS

[/CODE]



When I changed this localization to change my hero class tittles I found an interesting bug. While the effect targets system defense it seems because the variable name is the same for the Hero stat the tool tip says that this ability give +200 LOGISTICS to my star system (it actually does give system defense).



Doesn't change the game at all but definitely a display bug.
0Send private message
12 years ago
Aug 27, 2012, 10:06:40 AM
I have tested the science leech not the dust leech but I am betting if one is bugged the other is too, at the very least it should be looked into. I thought at first it didn't work at all but I kept trying it out at different systems and finally over a planet for one turn i got a bit of science, I have no idea why its not working but how ever it is supposed to work I don't think this is it.



[CODE]



[/CODE]



[CODE]



[/CODE]
0Send private message
12 years ago
Aug 19, 2012, 10:12:38 PM
You're probably right about that, davea. At this stage I think we'd rather have developers than translators anyway. Translating some of the english vocalizations I've done is going to be....difficult. How the hell do you say "Anti-Baryon Gravitophoric Proximity Annihilation Point Defense System" in French? (German has a word for everything)
0Send private message
12 years ago
Aug 19, 2012, 10:07:20 PM
I have often found that translators are willing to work on the first version, but when they get a new version which has 2000 old strings and an unknown number maybe 1000 of changed strings, it is difficult to keep up their enthusiasm. Same problem for voice acting on RPG mods.
0Send private message
12 years ago
Aug 19, 2012, 9:59:05 PM
davea wrote:
I agree that my strings are not localized yet. For most mods I have seen in other games, english is first, and once a mod is *finalized* then it may be localized. Are you really planning to translate all of your 3000 strings into all five supported languages for your first release? Even if you do, I highly recommend you keep it in a separate file, just so that any translator knows which strings they need to do.




Hupa has a French translator for his mod, but I don't think we've decided what exactly will be included in the first 'release'. Hupa and myself are working in English, and Epithemee is transferring that to the french localization file.
0Send private message
12 years ago
Aug 19, 2012, 9:57:04 PM
I agree that my strings are not localized yet. For most mods I have seen in other games, english is first, and once a mod is *finalized* then it may be localized. Are you really planning to translate all of your 3000 strings into all five supported languages for your first release? Even if you do, I highly recommend you keep it in a separate file, just so that any translator knows which strings they need to do.
0Send private message
12 years ago
Aug 19, 2012, 9:55:51 PM
Hupa's right - the SCALE of the localizations you have to do is insane! Half the time Notepad++ crashes when I try to do a diff between versions smiley: smile Between Hupa and myself, our english localization file is probably at 9,000 lines (up from 5,500 stock).
0Send private message
12 years ago
Aug 19, 2012, 9:30:21 PM
Couple things:



1) If you don't translate your mod heroskills to france or german or put same files to those files it will look messy.



2) In your mod you have maybe 9 new sentences in localization file.

I have in mine right now something like 1200 and it will rise (hopefully) during next week to 3000+, once you hit to that amount it doesn't really matter anymore whether it has old and existing localization.



Quess this is all about scale and purpose.



You are making simple mod to english speaking audience, I am in a team which makes huge mod for all Endless Space players no matter where they come and what they speak (though I am still looking someone who can speak german).
0Send private message
12 years ago
Aug 19, 2012, 9:18:18 PM
Have you verified which of the existing buildings can be built on these planets and which cannot?




Now thats just question of removing couple sentences... basically any building which points to planet can be build to any planet. If building path says some specific planet it of course can't be build there.



You either have to give to those buildings more accessibility (as in let one build those to new planets) or remove restrictions completly.



Then again I don't have "existing" buildings at all in my endless space atm so answer is: "none or all".



And which ones the AI will build on these planets?




Aaand this depends of how AI is build. Since I haven't tinkered with AI in endless dream yet it can do anything or nothing and I wouldn't be shocked.



I except to see that it doesn't build ships, doesn't understand engines, can't research and so on. If I notice that it does even one of these in endless dream I am shocked.
0Send private message
12 years ago
Aug 12, 2012, 4:41:01 PM
I am not sure if modding bugs should go into the tech support forum as separate threads, or whether they should go in the modding forum. Let's try one thread, here. This thread is not for modding "questions" or "suggestions", but for "bugs" where it seems clear that something should work, but it does not.
0Send private message
12 years ago
Aug 19, 2012, 3:02:44 PM
davea wrote:
Interesting suggestion. As far as I can tell, terraformation requires a new planet type as target, which involves changing a lot of files. Every improvement which works on certain planet types needs to have an addition for this type, etc. Although the current description only allows terrans, if I can get it working I will add a stronger tech which allows it on any tier 1, tier 2 planet. Then it will be an alternative to higher level terraforming.




Actually it was fairly easy to add several planets smiley: biggrin oh and ability to terraform to those too.
0Send private message
12 years ago
Aug 19, 2012, 2:45:24 PM
Interesting suggestion. As far as I can tell, terraformation requires a new planet type as target, which involves changing a lot of files. Every improvement which works on certain planet types needs to have an addition for this type, etc. Although the current description only allows terrans, if I can get it working I will add a stronger tech which allows it on any tier 1, tier 2 planet. Then it will be an alternative to higher level terraforming.
0Send private message
12 years ago
Aug 19, 2012, 11:03:50 AM
Can't you work around that by addressing it as a terraformation instead of an anomaly reduction?
0Send private message
12 years ago
Aug 18, 2012, 5:20:08 PM
I created a mod which gives a new race-specific anomaly reduction to horatio, but it won't work unless the planet already has some anomaly. The mod adds a new technology after Soil Revivification called Genesis Project. This unlocks a reduction called Genesis Transformation, which is supposed to add the Garden of Eden anomaly to any terran planet. If the planet already has an anomaly (good, reduced or bad) it works. The "scissors" icon appears in the zoomed planet dialog so the reduction can be selected. But, if the planet has no anomaly, the scissors icon does not appear.



Carefully unzip the attachment into (my documents)\Endless Space; it contains both a save game, and a set of modding files for a mod called "Anomaly Bug". I have added an entry for the tech into TechnologyExpansion.xml and added the reduction itself into PlanetImprovement.xml.



In the save game, I have set up system Betel, some distance east of home planet Takim. Betel I is a terran with no anomaly, II has a reduced anomaly, and IV has a good anomaly. Please note that II and IV have the transformation button available, but Betel I does not.



Please fix this so that anomalies can be added to planets which don't already have one.
anomaly-bug.zip
0Send private message
12 years ago
Aug 18, 2012, 8:10:50 AM
davea wrote:
I found another way to do it. I created an empire improvement which gives -35% on the tonnage of civilian modules. This allows 3-4 pop on a standard transport, and 12 pop on a high tech DN. 12 is not recommended, because when you colonize a new system, you only get one planet. So if the planet has a pop cap of 8, the other 4 pop are apparently launched into deep space and killed.




Sacrifices for a better Future ! smiley: biggrin
0Send private message
12 years ago
Aug 18, 2012, 6:20:15 AM
davea wrote:
So if the planet has a pop cap of 8, the other 4 pop are apparently launched into deep space and killed.
Oh dear, that escalated quickly.
0Send private message
12 years ago
Aug 18, 2012, 6:05:04 AM
davea wrote:
I created a mod which gives a new race-specific seed pod module to horatio, but ships with this module cannot colonize.


I found another way to do it. I created an empire improvement which gives -35% on the tonnage of civilian modules. This allows 3-4 pop on a standard transport, and 12 pop on a high tech DN. 12 is not recommended, because when you colonize a new system, you only get one planet. So if the planet has a pop cap of 8, the other 4 pop are apparently launched into deep space and killed.
0Send private message
12 years ago
Aug 18, 2012, 3:18:39 AM
I don't want anything else, I am only pointing out that your single post in this thread is not understandable, without reading the original thread I linked.
0Send private message
12 years ago
Aug 18, 2012, 3:04:29 AM
Not sure what you want me to put in there, I put the code I used, explained what the results logically should be and explained that's not what happened. What else do you want?
0Send private message
0Send private message
12 years ago
Aug 18, 2012, 2:47:40 AM
Nycidian wrote:
Figured out another way it should work using mathematical properties.



[code]

















[/code]



How it should work



F || I

3 || 2



F+I || I

5 || 2



F+I || I -(F+I)

5 || -3



(F+I)+[I-(F+I)] || I -(F+I)

2 || -3



(F+I)+[I-(F+I)] || {I -(F+I)}*-1



2 || 3





But again it doesn't work. It seems that the game will only work on either Food or Industry, with the above code on a planet with 8 food and 8 industry it did not effect food what so ever and gave Industry no bonus but a -16.



*you can simplify the above to make it easier to understand



F || I







F+I || I







F+I || I -(F+I) → F+I || -F







(F+I)+(-)F || -F → I || -F







I || -F*-1







I || F




Pretty sure this is a bug though I have no idea why it will only let me manipulate one FIDS at a time.
0Send private message
12 years ago
Aug 18, 2012, 2:24:08 AM
I created a mod which gives a new race-specific seed pod module to horatio, but ships with this module cannot colonize. Carefully unzip the attachment into (my documents)\Endless Space; it contains both a save game, and a set of modding files for a mod called "Transport Bug". I have added a ModuleColonizationHoratio1 into CivilianModules.xml and added the unlock for this module into the Efficient Shielding tech.



In the save game, I have designed a colonizer with four of these modules, built it, and moved it to an empty system, Hidel which is just north of home planet Takim. Building it correctly reduces the system population by 4. When I arrive at Hidel, the colonize tooltip is greyed out, "your fleet has no colonization ship". I suppose there is a hard-coding somewhere for enabling this button, which only enables it when the specific module "ModuleColonization" is present. I can scrap the ship at an occupied system to get the population back, but I cannot start a new system with this ship.



I tried a workaround, where instead of 4 horatio modules, I have 2 horatio modules and one normal seed module. When I build this ship, it only decreases the population of the planet by 1 instead of 3 (wrong). When I move this ship to Hidel, the colonize button is activated (right) but colonizing only puts one population on the planet (wrong).



Please fix this so that race-specific colonization modules work properly.
transport-bug.zip
0Send private message
12 years ago
Aug 12, 2012, 5:51:04 PM
If a file in a mod directory is readonly, the game will fail to read it:



Datatable of type ShipDesignTemplate cannot open the file with path : C:\Users\dave\Documents/Endless Space/Modding/hero-assign/AI/ShipDesignTemplate.xml Exception : System.UnauthorizedAccessException: Access to the path "C:\Users\dave\Documents\Endless Space\Modding\hero-assign\AI\ShipDesignTemplate.xml" is denied.



at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in :0





You are only reading the file anyway, why do you fail without write permission?



Protip: *always* *always* look in output_log.txt and search for the string "Modding" when testing a new mod. In this case, the game starts fine, but the associated file defines all the templates for ships larger than corvette. So an error in reading this file means that the AI's will never build any ships larger than corvettes. I was testing a mod which puts the proper ship names like HAWK instead of MEDIUM1HISSHOTEMPLATES, and I was very annoyed that after 80 turns, none of the AI's had built any larger ships. Come to find later that the game failed to read my mod file, and in fact failed to read the normal game file after that too.
0Send private message
12 years ago
Aug 12, 2012, 4:46:17 PM
All of the medium/large AI ships have names like MEDIUM1TERRANTEMPLATES12, or similar. This comes from file AI/ShipDesignTemplate.xml:

[code]



[/code]

I tried changing this to use localization strings:

[code]



[/code]

But then what shows up as the ship name is %SHIPCLASSTERRANMEDIUM1TITLE12, or similar. This is no better. I am locally hacking to use the names from the english localization file. For non-english games, this is still probably an improvement, but please fix the game to use the localization strings, and then use the attached xml file, so that we don't see these non-flavorful names.
ShipDesignTemplate.zip
0Send private message
?

Click here to login

Reply
Comment