Editor 1.1.20 hotfix

A forum to discuss custom scenarios, campaigns and modding in general.

Moderator: Panzer Corps 2 Moderators

Post Reply
Rudankort
FlashBack Games
FlashBack Games
Posts: 3836
Joined: Sat Aug 21, 2010 2:23 pm
Contact:

Editor 1.1.20 hotfix

Post by Rudankort »

Hello All!

The Editor in 1.1.20 has problems loading some scenarios which it previously saved. The problem is related to load code, so scenario files themselves are not corrupted, but still it is a major issue. Until a proper fix is released together with the next patch, you can download the fixed Editor EXE here:
https://www.dropbox.com/s/2nd5f5x4qoibp ... r.exe?dl=0

Let me know if you still have any issues with this fixed version.
KaiP
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 9
Joined: Sat Mar 06, 2021 9:45 am

Re: Editor 1.1.20 hotfix

Post by KaiP »

Thanks you - but my scenario want load any more after change the unit camo with the old editor - 3 days work lost. I changed the written row with the old editor with uniform camo manually in text editor to my old file - and now it no more start.

I accept that and rework this scenario from the beginning, if you answer two questions please !
1. How can I give an spawned unit a name in Lua Script ?
2. How can I set the unit uniform camo for swawned units in Lua Script ? Normally they come all with default settings.
asuser
Sergeant Major - SdKfz 234/2 8Rad
Sergeant Major - SdKfz 234/2 8Rad
Posts: 628
Joined: Tue May 28, 2013 8:48 pm

Re: Editor 1.1.20 hotfix

Post by asuser »

Thanks for fast help but...

I downloaded the hotfix and put it in the main directory (Steam version). After execution, a new error message appears:
"HTMLayout.dll could not be found"

Did I use that wrong?
jeannot le lapin
1st Lieutenant - 15 cm sFH 18
1st Lieutenant - 15 cm sFH 18
Posts: 827
Joined: Sun Dec 10, 2017 3:29 pm

Re: Editor 1.1.20 hotfix

Post by jeannot le lapin »

asuser wrote: Fri Mar 19, 2021 7:10 am Thanks for fast help but...

I downloaded the hotfix and put it in the main directory (Steam version). After execution, a new error message appears:
"HTMLayout.dll could not be found"

Did I use that wrong?
PzC2Editor.exe to the wrong place :?:

No problem for me :

Editor.JPG
Editor.JPG (45.3 KiB) Viewed 8563 times
asuser
Sergeant Major - SdKfz 234/2 8Rad
Sergeant Major - SdKfz 234/2 8Rad
Posts: 628
Joined: Tue May 28, 2013 8:48 pm

Re: Editor 1.1.20 hotfix

Post by asuser »

Oh, now it works!

Thanks, you are (both) my heroes of the day! :)
Rudankort
FlashBack Games
FlashBack Games
Posts: 3836
Joined: Sat Aug 21, 2010 2:23 pm
Contact:

Re: Editor 1.1.20 hotfix

Post by Rudankort »

KaiP wrote: Thu Mar 18, 2021 8:56 pm Thanks you - but my scenario want load any more after change the unit camo with the old editor - 3 days work lost. I changed the written row with the old editor with uniform camo manually in text editor to my old file - and now it no more start.
I don't quite understand from your description what happened there, but if you give me your pz2scn file, I'll take a look.
n0b0dy007
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 48
Joined: Sat Dec 07, 2019 3:52 pm

Re: Editor 1.1.20 hotfix

Post by n0b0dy007 »

A feature request for the editor, to help with scripting the associated Lua file:

An export to text file of the expected condition and effect functions.
For example, from the Seville.pz2scn scenario, something like:

Code: Select all

-- 3 Objectives defined in scenario:
	-- @end	Capture victory hexes	Cadiz (7;24) and Seville Airfield (10;14)
	-- opt	Hold victory hexes		Auxiliary Airfield (9;8)
	-- opt	Custom objective		CustomSuccess2() | CustomFail2()

-- 7 Triggers defined in scenario:
	-- 1x	StartGame(NewRoundAction)		{if AlwaysTrue()}		-> OnStartGame()
	-- 1x	EnemyHero(NewRoundAction)
	-- 1x	Objective1(ObjectiveStatusAction)	{if Objective1Condition()}	-> OnObjective1()
	-- 1x	StartTurn4Message(StartTurnAction)	{if Turn4MessageCondition()}	-> Turn4MessageEffect()
	--	OnNewRound(NewRoundAction)		{if EmptyCondition()}
	-- 	CaptureAF(CaptureFlagAction)						-> OnCaptureAF()
	-- 	Village(CaptureFlagAction)						-> OnCaptureVillage()
Even better would be to export function skeletons in Lua format, with the above info as function comments. 8)
Post Reply

Return to “Panzer Corps 2 Scenario Design”