Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Question about Debug Mode and Battlescript?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Close Combat – The Bloody First >> Close Combat The Bloody First - Modding >> Question about Debug Mode and Battlescript? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Question about Debug Mode and Battlescript? - 3/5/2021 12:45:58 PM   
lambobo

 

Posts: 3
Joined: 3/5/2021
Status: offline
Just bought it last weekend and I am very happy with it so far. Thank you for taking CC to the next level~

I am quite curious about BATTLESCRIPT since it wasn't available in the previous CC. Here are my questions:

1) Is there a DEBUG (mode) console so that I can test the functions specified in BATTLESCRIPT.TXT? I saw "DEBUGMODE, 0" in TWEAKS.TXT but not sure how to use it.

2) What is TWEAKS.TXT? Is this an auto-gen file or a configuration file?

3) What is the difference between DrawStringDirect() and DrawString()? Can you please share an example if I just want to write "Hello" on the screen somewhere?

Thank you.

< Message edited by lambobo -- 3/5/2021 12:48:52 PM >
Post #: 1
RE: Question about Debug Mode and Battlescript? - 3/5/2021 4:54:20 PM   
PipFromSlitherine

 

Posts: 1446
Joined: 6/23/2010
Status: offline
You should not change any of the files in your install folder. You add tweak tags (such as DEBUGMODE) to the USER.TXT file in Documents/My Games/CloseCombatTheBloodyFirst (where all your mods will go).

To start tinkering with the scripting you will really need to create your own map and then make use of the scripts that you can attach to it.

I am not sure that we have the UI hookups to allow writing to the screen directly, though you might be able to make it work if you create your own campaign and use the DATA/BATTLE/SCRIPTS/HELPER.BSF file and define a HELPER_SHOW_TIME function (you can see an example in the existing helper file in the install folder at the same path).

Cheers

Pip

_____________________________

follow me on Twitter here

(in reply to lambobo)
Post #: 2
RE: Question about Debug Mode and Battlescript? - 3/5/2021 5:27:23 PM   
ineffable


Posts: 410
Joined: 12/13/2019
From: Fishers Ferry
Status: offline
Despite a lot of kvetching from the peanut gallery, here and on Steam, I agree CC has been taken to the next level. Beaucoup functional improvements and all peeps wanna bitch about is the (serviceable) grfx

Battle scripting is most useful in setting deployment, 'auto-launching' a battle without a manual deployment phase, AI 'stance' (6 attack/defend settings), limiting a player's control to a one team, and my favorite, having the AI play both sides.

See the Omaha.bsf (battle script file) in \Close Combat The Bloody First\Campaigns\MAIN\DATA\BATTLES for an example of fixed deployment. Ive explained how to tweak all the variables in the above scripting on various threads here.
https://www.matrixgames.com/forums/tm.asp?m=4758583
https://www.matrixgames.com/forums/tm.asp?m=4757931
https://www.matrixgames.com/forums/tm.asp?m=4758864

_____________________________

Quid si

(in reply to PipFromSlitherine)
Post #: 3
RE: Question about Debug Mode and Battlescript? - 3/6/2021 10:02:18 AM   
lambobo

 

Posts: 3
Joined: 3/5/2021
Status: offline
PipFromSlitherine,

Thanks for your quick response. As suggested I put DEBUGMODE and DEBUGDISPLAY in USER.TXT and got "Unknown Tag" in error.log.

UNKNOWN TAGS IN: ../My Games/CloseCombatTheBloodyFirst/USER.TXT
Unknown Tag: DEBUGMODE,
Unknown Tag: DEBUGDISPLAY,
END: ../My Games/CloseCombatTheBloodyFirst/USER.TXT

I guess maybe DEBUGMODE is disabled in the release .exe?

ineffable,

Thank you very much. That's a lot of good information!

I can see those being negative are also true Close Combat fans who love and care about the series. Hopefully, continuous improvements in 3D CC will convince them later on.

Cheers.

(in reply to PipFromSlitherine)
Post #: 4
RE: Question about Debug Mode and Battlescript? - 3/6/2021 10:33:57 AM   
ineffable


Posts: 410
Joined: 12/13/2019
From: Fishers Ferry
Status: offline
If you havent already, you'll want to adjust the camera limits in \Close Combat The Bloody First\Data\Mapview.txt to allow closer viewing, and at at a lower angle. That way you can get down in the weeds with the troops, tracers and explosions.

_____________________________

Quid si

(in reply to lambobo)
Post #: 5
RE: Question about Debug Mode and Battlescript? - 3/8/2021 2:57:24 PM   
PipFromSlitherine

 

Posts: 1446
Joined: 6/23/2010
Status: offline
There should not be any commas in the user.txt. E.g.

DEBUGMODE 1

Cheers

Pip


_____________________________

follow me on Twitter here

(in reply to ineffable)
Post #: 6
RE: Question about Debug Mode and Battlescript? - 3/18/2021 2:52:48 PM   
lambobo

 

Posts: 3
Joined: 3/5/2021
Status: offline
quote:

DEBUGMODE 1

It works! Thank you~

Out of curiosity, I tried to update an existing message on the "MsgList" UI and it works.

Print("CC TBF");
UpdateUIListboxItem("MsgList", 3);

However, adding a new message doesn't. Any ideas?

Print("CC TBF");
AddUIListboxItem("MsgList");

quote:

... adjust the camera limits in \Close Combat The Bloody First\Data\Mapview.txt to allow closer viewing ...

Thanks ineffable. Setting ZOOMINLIMIT to 40 from 80 is much better to me.

(in reply to PipFromSlitherine)
Post #: 7
RE: Question about Debug Mode and Battlescript? - 3/18/2021 4:21:34 PM   
PipFromSlitherine

 

Posts: 1446
Joined: 6/23/2010
Status: offline
I don't recall whether the list is managed by code. What are you trying to achieve?

Cheers

Pip


_____________________________

follow me on Twitter here

(in reply to lambobo)
Post #: 8
RE: Question about Debug Mode and Battlescript? - 3/30/2021 9:07:19 PM   
burbigo

 

Posts: 11
Joined: 11/9/2020
Status: offline
Hey, no further answers for this one please ?

(in reply to PipFromSlitherine)
Post #: 9
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Close Combat – The Bloody First >> Close Combat The Bloody First - Modding >> Question about Debug Mode and Battlescript? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.141