Hex of Steel
Ebenezer171 Apr 14, 2024 @ 4:08am
Unit Editor
Hi Valentin,
I'm having trouble with the unit editor in some cases.
I have tried copying an artillery, pasting into my mod, and assigning it with 'coastal battery mechanics'. It saves it, and when I go back into unit editor it's still assigned.
But, then if I do 'apply changes' to my mod, and then go back into unit editor, the box is unchecked again.

Also, when I select my mod in the editor, no units come up in the list, unless I manually search for one. Is that right?
< >
Showing 1-5 of 5 comments
A Corsican Frog  [developer] Apr 14, 2024 @ 5:06am 
Hello,

First of, why are you giving an artillery the 'coast artillery' mechanics?

You should not be doing that if you just want your gun to attack ships, for this specific purpose, I have added a brand new property yesterday called 'can attack ships'
Use that instead

The coastal battery flag has a whole bunch of code, and is now useless for this kind of behaviour

Now, I have done as you said. I created a new mod, I have activated it, I went to the units editor, I picked a random artillery, I turned ON the 'coastal battery' toggle, I made sure my mod was active and selected in the units editor, I proceeded to add the unit, went back to the mods menu, hit apply changes (not sure why you did that), went back to the units editor, my unit is like I left it, coastal battery is still ON

Finally, yes, no units will be shown until you manually start looking for one, or if you start selecting some filters
Last edited by A Corsican Frog; Apr 14, 2024 @ 5:07am
Ebenezer171 Apr 14, 2024 @ 6:07am 
Originally posted by valentin56610:
Hello,

First of, why are you giving an artillery the 'coast artillery' mechanics?

You should not be doing that if you just want your gun to attack ships, for this specific purpose, I have added a brand new property yesterday called 'can attack ships'
Use that instead

The coastal battery flag has a whole bunch of code, and is now useless for this kind of behaviour

Now, I have done as you said. I created a new mod, I have activated it, I went to the units editor, I picked a random artillery, I turned ON the 'coastal battery' toggle, I made sure my mod was active and selected in the units editor, I proceeded to add the unit, went back to the mods menu, hit apply changes (not sure why you did that), went back to the units editor, my unit is like I left it, coastal battery is still ON

Finally, yes, no units will be shown until you manually start looking for one, or if you start selecting some filters

Thanks for this. The reason I selected 'coast artillery' is because when i hover over it, it says 'allows a ground unit to attack ships'. So I thought this was the one.

So, I tried with the 'can attack ships' instead. Saved it, was still there when I went back in. Didn't bother with apply changes, and added the updated unit into my map. Then played scenario. But, they didn't work. Also bought one in the scenario but that didn't work either.

I then went back to unit editor and the box had unchecked itself again. So, this time I edited unit, and instead of going into map editor, I went straight to play scenario. And this time it worked. So, is map editor removing it somehow?

Another strange thing is that when I start a scenario and buy units, when I want to deploy them there is a number over the towns/cities, so I have to wait 3-5 turns before I can deploy. Is this a new thing, only appeared yesterday?
jlowerre Apr 14, 2024 @ 6:57am 
Ebenezer - 'Another strange thing is that when I start a scenario and buy units, when I want to deploy them there is a number over the towns/cities, so I have to wait 3-5 turns before I can deploy. Is this a new thing, only appeared yesterday?'

A bug Valentin eliminated with very recent update.
Last edited by jlowerre; Apr 14, 2024 @ 6:57am
Ebenezer171 Apr 14, 2024 @ 7:20am 
Originally posted by jlowerre:
Ebenezer - 'Another strange thing is that when I start a scenario and buy units, when I want to deploy them there is a number over the towns/cities, so I have to wait 3-5 turns before I can deploy. Is this a new thing, only appeared yesterday?'

A bug Valentin eliminated with very recent update.

Thanks jlow, I've tried it again and it seems to be eliminated now, like you say. It was definitely there an hour ago though.
jlowerre Apr 14, 2024 @ 7:26am 
yup, couple others noticed it and posted on Discord.
Fortunately Valentin had the patch out before I started playing today :)
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Apr 14, 2024 @ 4:08am
Posts: 5