Aurora 4x

C# Aurora => C# Mechanics => Topic started by: Agraelgrimm on May 20, 2021, 08:41:58 PM

Title: Custom Creation bug?
Post by: Agraelgrimm on May 20, 2021, 08:41:58 PM
Everytime i try to create a new race with custom start, the game doesnt add the conventional factories. In fact, CI doesnt even appear on the list of constructions. I cant even order to build one. Everytime is the same thing. So i start with 0 factories and there is no way to add more. What do i do?
Title: Re: Custom Creation bug?
Post by: Erik L on May 20, 2021, 10:41:01 PM
Are you creating a Pre-TN race? That is the only way for the conventional factories to appear.
Title: Re: Custom Creation bug?
Post by: Agraelgrimm on May 20, 2021, 10:49:27 PM
Are you creating a Pre-TN race? That is the only way for the conventional factories to appear.
Yes i am.
Title: Re: Custom Creation bug?
Post by: Froggiest1982 on May 20, 2021, 11:19:17 PM
Are you creating a Pre-TN race? That is the only way for the conventional factories to appear.
Yes i am.

It's weird then, I just started a new custom game with 4 races and it seems to work. Are you able to send screens of the process?
Title: Re: Custom Creation bug?
Post by: Agraelgrimm on May 21, 2021, 12:08:38 AM
Are you creating a Pre-TN race? That is the only way for the conventional factories to appear.
Yes i am.

It's weird then, I just started a new custom game with 4 races and it seems to work. Are you able to send screens of the process?
I just follow the written tutorial to the letter. Then i save the game, close it and when i open it again, i have this problem. Oh and im using the Resize mod.
Title: Re: Custom Creation bug?
Post by: DeMatt on May 21, 2021, 11:19:42 AM
Conventional Industry cannot be constructed by a race during gameplay.  Period.  Full stop.

Conventional Industry can be created during the "Create New Race" phase of setting up a game.  You know, the screen where you're setting up your race's name and environment preferences?

(https://i.imgur.com/elTUO54.gif)

Change that number to whatever you like, but do it before you finalize the race by clicking "Create Race".  It defaults to 1.6 times the total population when you click the "Conventional Empire" checkbox, so if you don't manually change it to zero, you'll have Conventional Industry once you start playing.

If you absolutely must add Conventional Industry to a population during gameplay, you can do it with the following steps:

I just follow the written tutorial to the letter. Then i save the game, close it and when i open it again, i have this problem. Oh and im using the Resize mod.
You are following this tutorial (http://aurora2.pentarch.org/index.php?topic=11136.0), right?
Title: Re: Custom Creation bug?
Post by: Agraelgrimm on May 21, 2021, 02:50:47 PM
Conventional Industry cannot be constructed by a race during gameplay.  Period.  Full stop.

Conventional Industry can be created during the "Create New Race" phase of setting up a game.  You know, the screen where you're setting up your race's name and environment preferences?

(https://i.imgur.com/elTUO54.gif)

Change that number to whatever you like, but do it before you finalize the race by clicking "Create Race".  It defaults to 1.6 times the total population when you click the "Conventional Empire" checkbox, so if you don't manually change it to zero, you'll have Conventional Industry once you start playing.

If you absolutely must add Conventional Industry to a population during gameplay, you can do it with the following steps:
  • Turn on Spacemaster mode.
  • Open the Colonies window - Industry tab, Mining tab, Research tab, doesn't matter right now.
  • Select the target population using the tree view.
  • Switch to the "Civilian Economy" tab.
  • Of the three columns here, the left column is "what installations are present in this population".  At the top is the installation type selector, and at the bottom are the Spacemaster buttons for adding, editing, or deleting.
  • Select "Conventional Industry" from the selector.
  • Click "SM Add", type in the number of installations you want to add, and click "OK".
  • Note that "adding" to an existing type of installation does not update the window!  If there's already an entry, select it and use "SM Edit" to change the number instead.

I just follow the written tutorial to the letter. Then i save the game, close it and when i open it again, i have this problem. Oh and im using the Resize mod.
You are following this tutorial (http://aurora2.pentarch.org/index.php?topic=11136.0), right?

Yea, i know all this. The problem is: Lets say i put 560 conventional Industries on race creation, it works fine for a while, but when i save the game and open again, i have the total amount of 0 conventional Industries. It just vanishes. And yes, that is the tutorial i am following to the letter. But somehow this bug happens all the time with me and aparently only me. Could it be corrupted file or something like that?
And thanks for the work around.
Title: Re: Custom Creation bug?
Post by: Droll on May 21, 2021, 03:08:51 PM
Yea, i know all this. The problem is: Lets say i put 560 conventional Industries on race creation, it works fine for a while, but when i save the game and open again, i have the total amount of 0 conventional Industries. It just vanishes. And yes, that is the tutorial i am following to the letter. But somehow this bug happens all the time with me and aparently only me. Could it be corrupted file or something like that?
And thanks for the work around.

What is your number separator, comma or period?

Have you tried a fresh 1.13 reinstall to see if the issue persists?
Title: Re: Custom Creation bug?
Post by: Agraelgrimm on May 21, 2021, 03:12:18 PM
Period and no. It was a pain just to install this with all the mods i need to be able to actually play the game.
Title: Re: Custom Creation bug?
Post by: Steve Walmsley on May 21, 2021, 06:14:08 PM
Period and no. It was a pain just to install this with all the mods i need to be able to actually play the game.

If you are reporting bugs, please mention you have mods. One of the reasons I have been so reluctant to endorse mods is so I don't spend my limited free time chasing non-existent bugs that are actually caused by mods.
Title: Re: Custom Creation bug?
Post by: Agraelgrimm on May 21, 2021, 10:38:42 PM
Period and no. It was a pain just to install this with all the mods i need to be able to actually play the game.

If you are reporting bugs, please mention you have mods. One of the reasons I have been so reluctant to endorse mods is so I don't spend my limited free time chasing non-existent bugs that are actually caused by mods.
I have Lib and Resize Windows mods. Thats it. And its not suposed to do that. In any rate, i can just add the conventional factories later, if that works.
Title: Re: Custom Creation bug?
Post by: Steve Walmsley on May 22, 2021, 05:42:22 AM
Period and no. It was a pain just to install this with all the mods i need to be able to actually play the game.

If you are reporting bugs, please mention you have mods. One of the reasons I have been so reluctant to endorse mods is so I don't spend my limited free time chasing non-existent bugs that are actually caused by mods.
I have Lib and Resize Windows mods. Thats it. And its not suposed to do that. In any rate, i can just add the conventional factories later, if that works.

The point is that it works for other players who aren't using the mods, so the C# Aurora code is working fine (and I would get a LOT of bug reports if this was an Aurora issue). It looks like something in the mods is causing the problem. I can't see how Resize Windows would be an issue. I haven't heard of the 'Lib' mod.

In any event, reporting 'bugs' without mentioning mods means you may be wasting the time of the players who are trying to help on this thread. That will make them less likely to try to help in future,
Title: Re: Custom Creation bug?
Post by: Agraelgrimm on May 22, 2021, 12:27:29 PM
Period and no. It was a pain just to install this with all the mods i need to be able to actually play the game.

If you are reporting bugs, please mention you have mods. One of the reasons I have been so reluctant to endorse mods is so I don't spend my limited free time chasing non-existent bugs that are actually caused by mods.
I have Lib and Resize Windows mods. Thats it. And its not suposed to do that. In any rate, i can just add the conventional factories later, if that works.

The point is that it works for other players who aren't using the mods, so the C# Aurora code is working fine (and I would get a LOT of bug reports if this was an Aurora issue). It looks like something in the mods is causing the problem. I can't see how Resize Windows would be an issue. I haven't heard of the 'Lib' mod.

In any event, reporting 'bugs' without mentioning mods means you may be wasting the time of the players who are trying to help on this thread. That will make them less likely to try to help in future,

Im sorry, Steve. I didint meant to waste anyone time. I just tought i would ask first if it was a bug or if i was doing something wrong or missing something. THe C# Mechanics are still new to me. In any rate, the bug seems to happen when i save and only with CI and i have a short solution to that. So no need to spend time and effort to it.
Title: Re: Custom Creation bug?
Post by: Agraelgrimm on May 22, 2021, 01:28:01 PM
But just in case, i will post a print screen of the problem.
Title: Re: Custom Creation bug?
Post by: Steve Walmsley on May 22, 2021, 03:04:45 PM
Based on that screenshot, it looks like you have the decimal separator set to a comma (based on the period being used for the thousands separator).
Title: Re: Custom Creation bug?
Post by: Agraelgrimm on May 22, 2021, 04:15:11 PM
But somehow that only happens when i do conventional start. I have no other problems in the game.
Title: Re: Custom Creation bug?
Post by: Elvin on May 22, 2021, 05:38:34 PM
Stuff does typically appear to "work" when you have the wrong decimal separator, but in reality it's doing all sorts of weird things that, unless you knew better, the game shouldn't be doing. Things like super-fast research speed or mining.

So the recommendation is to either change your Windows settings, or, as you've already found your way to the AuroraPatch, check out this one: http://aurora2.pentarch.org/index.php?topic=12565.0
Title: Re: Custom Creation bug?
Post by: Agraelgrimm on May 22, 2021, 07:04:07 PM
The date changes are not working. We dont have either 35 or 64 days or months lol
Edit: Nvm, found out the error. But its really good to *finally* be able to know when the projects are going to be completed. Thank you very much!
Title: Re: Custom Creation bug?
Post by: Agraelgrimm on May 22, 2021, 08:01:16 PM
Stuff does typically appear to "work" when you have the wrong decimal separator, but in reality it's doing all sorts of weird things that, unless you knew better, the game shouldn't be doing. Things like super-fast research speed or mining.

So the recommendation is to either change your Windows settings, or, as you've already found your way to the AuroraPatch, check out this one: http://aurora2.pentarch.org/index.php?topic=12565.0

Well, the problem has not been solved. Im having expected time in 35-42 days of the week. I reckon all sorts of wierd things are happening. What should i really use for culture and date?
Title: Re: Custom Creation bug?
Post by: Black on May 23, 2021, 02:04:37 AM
Is that a new game or do you continue the old game, that was created with wrong separator? You should definitely start a completely new game as the old one is corrupted.
Title: Re: Custom Creation bug?
Post by: Agraelgrimm on May 23, 2021, 05:21:24 PM
Is that a new game or do you continue the old game, that was created with wrong separator? You should definitely start a completely new game as the old one is corrupted.
Ok... Will do. Thanks for the explanation.
Title: Re: Custom Creation bug?
Post by: Agraelgrimm on May 23, 2021, 08:37:35 PM
Is that a new game or do you continue the old game, that was created with wrong separator? You should definitely start a completely new game as the old one is corrupted.

Well, i did that and it got even whackier than just wierd dates... Research went to hell and production too. Something is getting considerable wrong.
Title: Re: Custom Creation bug?
Post by: Density on May 23, 2021, 09:15:26 PM
I know you probably don't want to hear this, but...

At this point, if I were you, I'd be tossing my entire aurora folder and doing a fresh install. Then I'd be making sure it works without mods, and then I'd be adding one mod at a time and making sure it still works between each one.
Title: Re: Custom Creation bug?
Post by: Agraelgrimm on May 23, 2021, 10:53:21 PM
I see no other alternative. =/
Title: Re: Custom Creation bug?
Post by: Black on May 24, 2021, 08:46:56 AM
The nonsensical date formats are what is strange to me, because I don't remember ever seeing something like that. Did you check the date formats in your Windows setting?

Are you sure that you changed the locale correctly?
Title: Re: Custom Creation bug?
Post by: Density on May 24, 2021, 10:12:14 AM
Almost all calendars in use have 12 months, and most of the rest have 13.
In order to get those dates just from format or locale settings the OP has gone way out of their way to force Windows to use a rare or deprecated calendar, and thus wouldn't have ever been thrown off by them in the first place.

Something else is going on.
Title: Re: Custom Creation bug?
Post by: Agraelgrimm on May 24, 2021, 02:08:56 PM
The nonsensical date formats are what is strange to me, because I don't remember ever seeing something like that. Did you check the date formats in your Windows setting?

Are you sure that you changed the locale correctly?
I think so. dd/mm/yyyy. Culture is Great Britain, because of those commas... reinstalling everything didint worked, so i still have that same problem. The wierd research bug and conventional industries disappearing is aparently solved, is just this wierd bug now, wich is think is the Locale mod.
Title: Re: Custom Creation bug?
Post by: 01010100 on May 24, 2021, 10:52:13 PM
I haven't heard of the 'Lib' mod.

It comes bundled with AuroraPatch and is a dependency of the rest of the mods out there. The 'Lib' mod doesn't do anything by itself, it's just a library of useful functions that other mods use to help working with the obfuscation. You can check it out here if you want:
https://github.com/Aurora-Modders/AuroraPatch/tree/master/Lib
Title: Re: Custom Creation bug?
Post by: 01010100 on May 26, 2021, 03:26:11 PM
dd/mm/yyyy.

m is minutes, M is months. You probably want dd/MM/yyyy instead.
Title: Re: Custom Creation bug?
Post by: Agraelgrimm on May 26, 2021, 08:29:49 PM
dd/mm/yyyy.

m is minutes, M is months. You probably want dd/MM/yyyy instead.
It seems to have solved the problem. Thanks man!