Losing fight with the editor (Full Version)

All Forums >> [New Releases from Matrix Games] >> WarPlan >> MODS and Scenarios



Message


Uxbridge -> Losing fight with the editor (8/13/2020 7:30:17 AM)

Messing with the editor can sometimes be very frustrating. Mostly, after a while, I figure out how to do things, but certain issues stubbornly resist clarification.

1. Is there, for instance, any way that one can see the value set in a resource while still in the editor? As it is now, I can find no other option but saving and starting the scenario in normal play mode. Very time-consuming.

2. How do you set the values you like to have in the resource? Presently, I clear the hex, enters the values in the window below, and then add the resource. Sometimes (when I have a look at the scenario in play mode) it works, sometimes not. Seems my method isn't the right one.

3. How does the Defence setting in a resource work? I want the resource to double the strength of units in it, and therefore set the value at 200%. When I open the scenario in game mode, however, it shows some odd value (like -4,1), that doesn't make any sense.




AlvaroSousa -> RE: Losing fight with the editor (8/13/2020 3:05:41 PM)

On the far right is a toggle that says Hotkeys. There is also a mods manual.

#1 Not hovering the map.
But you can see it here.
Resource -> left click resource on left -> look at bottom that lists the attributes.

OR

Resource -> right click any map hex that will show the current resource on the bottom of the screen.

#2 Resources -> left click the resource -> modify values at bottom of screen

#3 WarPlan reduces the attacker strength with defenses. Here is an example. You are attacking a fortress in the mountain with a level 2 entrench unit across a river.
Being an attacker 40%
Mountain 50%
River 50%
Fortress 50%
Entrenchment 10% each = 80% (100% - 10% - 10%)

Attacker attack strength is modified as such .4 x .5 x .5 x .5 x .8 = .04 = 4% effective strength on this suicide mission.
Makes sense?

You can ask me anything on the editor.




Uxbridge -> RE: Losing fight with the editor (8/14/2020 2:07:12 PM)

All right, I'll get it now. I was under the impression that one could alter the setting of each hex, but if I (ostensibly) do that, the values of that type of resource is changed all over the map. No wonder I couldn't get it to work.

Regarding fortress, if I want the attacker to be halved, I should set the resource to 50%, right?

Another thing – what will happen if I lower the defence value of a unit type, and then let two of these attack each other in turn. Will the change cancel out, so there's no difference from normal? Or would the attacking unit be stronger in the "die roll" even if both have the same characteristics? I want to give the units more punch and less armour plates.




AlvaroSousa -> RE: Losing fight with the editor (8/16/2020 10:58:41 PM)

yes 50%

Defense values are the chance real damage gets converted to effectiveness loss. High value greater chance. Everything is a minor adjustment that you change.




Uxbridge -> RE: Losing fight with the editor (8/17/2020 8:13:42 AM)

I see. Thought it was a counter value to the firearms/guns/artillery/tanks values. So what, in reality, does a "6" mean? Is it 6 % chance for conversion, or 60 %?

Is there anyway I can change the unit values to make them more equal in battle? That a one to one combat produces roughly the same effect on both units?




AlvaroSousa -> RE: Losing fight with the editor (8/17/2020 6:10:51 PM)

That is a complicated formula I would have to work out and test.

All the factors in the game are to allow different units to have different functions in a way that isn't game breaking over a few battles but the strategic decisions are seen over time.

Basically defense is this

defense(with tech) * experience% * .1f; } } = chance from 0 to 1 to block damage.
Then there is a 40% chance of damage to convert to eff loss and 60% chance for damage to be applied to strength without eff loss.

The entire combat process is very complex to the point even I have trouble remember what I did and have to look it up. There is lots of code under the game to make it as close to realistic as possible. More than 100 formula calculations for different things I'd say.

Best bet is to adjust but not replace. Otherwise you will be testing for a year yourself. WP is a WW2 engine not really meant for other times.






Uxbridge -> RE: Losing fight with the editor (8/17/2020 6:27:19 PM)

All right. I'll leave this question for this scenario. If there's no way of getting units of equal strength battle with equal results, I have to rely on other methods to neutralize the need to have higher odds to get favourable results.

I have one issue not dealt with as yet, and that's the question of supply in the other thread.




AlvaroSousa -> RE: Losing fight with the editor (8/21/2020 3:12:02 PM)

There is always a 40% attack penalty.

Ok so I thought this out. When I made WP I added extra unused variables to the main data file just in case there were things that needed to be added after production. The reason is on how data is saved for a game like this. It is serialized and you can't undo or remove data. Then there is conflicting versions and how the code is written.

What I can do is add a new variable to the Campaign section in the editor that allows the attack penalty to be modified by the user. Right now it is hard coded.

I will put this in the next beta but it will be 2 official updates away. Why because the next update is in a few days and they already have the files. I can't change them. I also need some time to change the coding and verify nothing interferes.

You showed me that this small change can lead to other types of games being made on the engine.

Makes sense?

So the next beta I will add the user adjusted modifier for attacking. Then you can match up units equally and set the penalty to 0%.




ericdauriac -> RE: Losing fight with the editor (8/21/2020 3:50:42 PM)

Hello,

Defense values are the chance real damage gets converted to effectiveness loss. But how the real damage sustained by a unit is calculate?




Uxbridge -> RE: Losing fight with the editor (8/21/2020 7:00:56 PM)

Sound terrific! [&o]

As for if it makes sense – yes, if it means what i hope it means.

What I want is that two units of the exact same type and set-up should produce the same combat results if met 1-1. If an Austrian landwehr brigade is attacking a French national guard brigade with an exact match in number and quality, the combat outcome should be expected to be fairly the same, save for the randomness of the "die roll" and the chance that the defender retreat. If a French guard unit attacks the Austrian landwehr, it would probably send it routing regardless of not having a 2-1 or 3-1 odds favour on the combat results table.

If the addition in the editor you're about to do, can still be offset by odds on the CRT, it would be good if the setting we will be free to change, not only takes the attackers penalty away. Make it possible to do the attacker stronger than the defender (if mechanics allow for that). This way one can tweak the effect of the CRT.

Hope that made sense. [:)]




AlvaroSousa -> RE: Losing fight with the editor (8/21/2020 8:17:15 PM)


quote:

ORIGINAL: Uxbridge

Sound terrific! [&o]

As for if it makes sense – yes, if it means what i hope it means.

What I want is that two units of the exact same type and set-up should produce the same combat results if met 1-1. If an Austrian landwehr brigade is attacking a French national guard brigade with an exact match in number and quality, the combat outcome should be expected to be fairly the same, save for the randomness of the "die roll" and the chance that the defender retreat. If a French guard unit attacks the Austrian landwehr, it would probably send it routing regardless of not having a 2-1 or 3-1 odds favour on the combat results table.

If the addition in the editor you're about to do, can still be offset by odds on the CRT, it would be good if the setting we will be free to change, not only takes the attackers penalty away. Make it possible to do the attacker stronger than the defender (if mechanics allow for that). This way one can tweak the effect of the CRT.

Hope that made sense. [:)]


There is no CRT to WP. It's all formula that simulates one based on a lot of variables.

If I think I know what you are asking then yes if 2 equal units attack 1 equal unit from 2 hexes that is 2:1 with no penalties except terrain/resource how ever you want to make it.




Uxbridge -> RE: Losing fight with the editor (8/21/2020 8:22:05 PM)

In that case it would be good if the setting we are able to change in the future could also make the attacker twice as strong, not only take away the penalty. Is that possible?




AlvaroSousa -> RE: Losing fight with the editor (8/21/2020 10:38:44 PM)

But they are twice as strong when 2 attack 1 if all things are equal




Uxbridge -> RE: Losing fight with the editor (8/22/2020 6:38:35 AM)

Well, I suppose that's better than how things are now, so the change is most welcome.

What I was looking for was an 1-1 relation between BOTH unit and combat. Assume there are two armies in Spain, one is the British under Wellington, the other the French under Marmont, both mowing to get into a favourable position to attack. Due to the scale these are made up of only one strong combat unit on each side. As it is now, attacking would almost always be at a disadvantage, since you need at least two units to achieve an equal chance of victory. This works well in an WWII setting, since there are a lot of units stretched out in a frontline. But it's difficult to simulate anything before WWI.

Anyway, removing the attacker penalty will go a good way closer to recreating other periods of warfare, especially if the scale of map is made more detailed. Eagerly looking forward to it. [:)]





Uxbridge -> RE: Losing fight with the editor (9/18/2020 6:37:38 AM)

Alvaro, I have been off the game for some weeks, now have the latest official patch and the latest beta.

How about this:

What I can do is add a new variable to the Campaign section in the editor that allows the attack penalty to be modified by the user. Right now it is hard coded. I will put this in the next beta but it will be 2 official updates away. Why because the next update is in a few days and they already have the files. I can't change them. I also need some time to change the coding and verify nothing interferes.

From what you said earlier, you were going to check its feasability and put it in an upcoming beta. I can't see this in the current beta, and didn't expect it that early either, but since we're now in a convenient gaming pause with 1815, I will wait for the change before we start anew. What is the present ETA for it?





AlvaroSousa -> RE: Losing fight with the editor (9/18/2020 7:14:21 AM)

It's going to be added to the beta. Currently I am waiting for the 1.00.081 update. Due to the Unity engine update change some players had graphical issues when in exclusive full screen that weren't there before in the 2017 engine. So I had to write an entire section to set the graphics in game.

After that I will address the issue in WPE.

It already has it in WPP.




Uxbridge -> RE: Losing fight with the editor (9/18/2020 7:35:01 AM)

Yeah, I saw the graphics issue. Must be very annoying when things like that pops up.

Thanks for the quick reply and change to the editor. It's highly valued. I will put the scenario on hold in wait for the beta.

Also, thanks for the hotkeys to trucks, attack/defend and upgrade. Those have been on my personal wish list for very long, but I never dared to add them to my official request list for fear of overburden you. The speed-up of micromanagement will be dramatic. [:)]




magic87966 -> RE: Losing fight with the editor (9/18/2020 2:11:10 PM)

I know nothing about coding and the editor but I'm trying to keep up with your conversation just to learn. I have a question about the formula used to calculate attack odds. Al, you said "There is always a 40% attack penalty." To understand this I loaded an attack scenario with a German infantry attacking a Polish infantry on a 1.0 hex. Neither side had air or General support and there was no entrenchment. This is what I saw before the attack of a 10 offensive value vs. a 3 defensive value:

[image]local://upfiles/51328/63CE2F071AFF492E8DBB21E7B26875FC.jpg[/image]




magic87966 -> RE: Losing fight with the editor (9/18/2020 2:12:44 PM)

And here is the combat result:
How does the 10 attack factor get to a 4-1 if it's attacking as a 6 (40% attacker penalty)? Again - not a criticism, I'm just trying to follow along. Thanks!

[image]local://upfiles/51328/9D83EEB22127494B93DBAB8CAC3A225B.jpg[/image]




AlvaroSousa -> RE: Losing fight with the editor (9/18/2020 2:26:41 PM)

Because the numbers are estimate strengths not actual ones for the non-phasing player.
Your units are rounded down.
The odds are also estimated.
Then there is the luck roll too.




magic87966 -> RE: Losing fight with the editor (9/18/2020 5:15:04 PM)

OK, Obviously all the estimations and variables make for a more exciting game. You wouldn’t want to know the exact numbers because what commander ever did? But in this example the attacker did attack as a 6 combat strength, right? (10 minus 40%) Is that the one number the attacker can be sure of?




kennonlightfoot -> RE: Losing fight with the editor (9/19/2020 3:09:11 PM)

Is there a way to clear all the victory hexes without having to find each one and remove them?
For instance, if you wanted to change one of the scenarios like 1942 one into just a summer long campaign. To make the victory conditions work the existing VP hexes and totals would need to be removed and a new set made based on what should be achievable by October 42.




lpgamble -> RE: Losing fight with the editor (1/29/2021 1:06:52 AM)


quote:

ORIGINAL: AlvaroSousa

On the far right is a toggle that says Hotkeys. There is also a mods manual.




Where is the mods manual?




lpgamble -> RE: Losing fight with the editor (1/29/2021 1:16:06 AM)

I think I found it. In the main Warplan forum under current game documentation, one of the files is the mod manual




AlvaroSousa -> RE: Losing fight with the editor (1/30/2021 3:04:52 PM)

Correct.




Dougwhite53SlitherineSSL -> RE: Losing fight with the editor (3/20/2021 8:55:54 AM)

Hi Alvaro,

I too seem to be having problems creating a new scenario. I've been playing around with an old boardgame conversion. I've setup a couple of units on both sides to try it out. Strange combat results - when I attack, a unit stands in place until it surrenders or is destroyed, regardless of the unit strengths. Regardless of combat results, the units stand fast and refuse to retreat. In one example, a 25 strength point unit surrendered. Control and supply have been set on the map so this doesn't seem to be the problem with no capability to retreat. Default generals are being used with values similar to the main scenarios. I've tried reinstalling the game and going back to an earlier version but still have the same problem. Any ideas on what is causing this?




AlvaroSousa -> RE: Losing fight with the editor (3/20/2021 2:53:46 PM)

You have to set all the variables for the game. There are a lot of them. Many I made importable from the data menu item.

The editor is a constant work in progress.




lion_of_judah -> RE: Losing fight with the editor (3/22/2021 5:57:45 PM)

I'm attempting to mess around with the editor, and having no luck. How do you even map the map size, have terrain showup instead of it looking like one big blob of green on the screen. Thanks




AlvaroSousa -> RE: Losing fight with the editor (3/23/2021 2:25:28 PM)

#1 are you starting from a blank slate
#2 what are you trying to make
#3 what scale is it?




lion_of_judah -> RE: Losing fight with the editor (3/23/2021 9:58:48 PM)

1. yes
2. map of africa
3. 50km

are you able to import a map of Africa or really any map and go from there?




Page: [1] 2   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.59375