String (WCH) limitations
-
Hi
I need to know the actual limitations or rules about string (.WCH) file for the campaign. I tried to fix for my save0.cam campaign in BfB and i see in the Balkans standard theater the same problem: “nowhere” indication for a lot of objectives (bridges, villages etc.) in the campaign map. In my campaign i have actually 2974 objectives and i assigned everyone the same objective’s name, but in the campaign map i still to see “nowhere” or better “NowhereNew” for a lot of structures. I made this work with various tools: TACEDIT, MC latest version, Monster Tool, with same result: nothing. In the default.wch i have the same names.
Thanks in advance for the reply.
D. -
Hi
I need to know the actual limitations or rules about string (.WCH) file for the campaign. I tried to fix for my save0.cam campaign in BfB and i see in the Balkans standard theater the same problem: “nowhere” indication for a lot of objectives (bridges, villages etc.) in the campaign map. In my campaign i have actually 2974 objectives and i assigned everyone the same objective’s name, but in the campaign map i still to see “nowhere” or better “NowhereNew” for a lot of structures. I made this work with various tools: TACEDIT, MC latest version, Monster Tool, with same result: nothing. In the default.wch i have the same names.
Thanks in advance for the reply.
D.Probably in the UI definitions somewhere, or another data file.
Will can when I get back from work and I’ll let you know where to find them… (if this is the case)
-
Hi
I need to know the actual limitations or rules about string (.WCH) file for the campaign……In the default.wch i have the same names.
The strings.wch and the default.wch do not contain the names of objectives. Those .wch files are administrative text entries for different things that interact with the game, via the DB, code, team names, pilots, etc., etc.
The Balkans.wch is the .wch file that contains the objectives names.
C9
-
Hi
I need to know the actual limitations or rules about string (.WCH) file for the campaign. I tried to fix for my save0.cam campaign in BfB and i see in the Balkans standard theater the same problem: “nowhere” indication for a lot of objectives (bridges, villages etc.) in the campaign map. In my campaign i have actually 2974 objectives and i assigned everyone the same objective’s name, but in the campaign map i still to see “nowhere” or better “NowhereNew” for a lot of structures. I made this work with various tools: TACEDIT, MC latest version, Monster Tool, with same result: nothing. In the default.wch i have the same names.
Thanks in advance for the reply.
D.Simple … come teamspeak … and i´ll show you.
-
You can also check RF …default.wch and redflag.wch file (file-compare)… and open save0.cam file and look how the objectives are named (double line naming > Name and TName must be same).
In KTO alot of objectives have the same name…*** so what i did was to rename eta 2600 objectives with unique individual names (took a while :P).Btw. 2974 objectives is ok…you can have that many names in BattleforBalkans.wch file i.e. The Default.wch file is a “fallback” so to speak, hence you can syncronize the content of bfb.wch and default.wch with notepad++.
The strings.wch has nothing to do with “names” of objectives. It is more or less an AI and UI coms .txt-databse.Thre is basically a “trick” how to make tacedit work properly in naming objectives (Name and TName must be saved as same).
PS: the word “Nowhere” doesn´t even exist in my .wch files (kicked out). “Nowhere” happens only if the code does not understand how to assign a name to an Obj ID (bad linkage) …hence the placeholder name “nowhere” is used. But if all Obj are named correctly …you can “kill” the word “nowhere” from your default and balkans.wch files, although it will be recreated in the .wch file if Objectives are not correctly named.
The code does not “care” about ojbective names, but about their IDs. Meaning you can theoratically name objectives with the same name if you would like to.
But if the naming is done wrong (bad linkage) …it will automatically call the village or city or bridge “nowhere” and create a new “nowhere” entry in the .wch file.Edit: Rest and quick FO-style way i showed you in TS
edit: Better to have all objectives different names so indexies corruption doesn´t occur (ie. Hongkong Bridge 1, Hongkong Bridge 2).
-
TCL:create.Rename.NoWheres.tcl
proc IsNonamed { objid } {
if { [objective get $objid name] != 0 } { return 0; }set parent [objective get $objid parent]
if { $parent == 0 } { return 0; }
if { [objective get $parent name ] == 0 } {
return 1;
} else {
return 0;
}
}proc ForceName { objid } {
objective set $objid name [campaign name2id -create [objective name $objid] ]
}set nnames 0
foreach var [lsort -real [objective list]] {
if { [IsNonamed $var] == 1 } { printout “Changed name for: [objective name $var]”
ForceName $var
incr nnames 1}
}printout “All done, total of $nnames objectives renamed.”
KISS
Thanks CODEC
demer
Add Squads in TacEdit
create.Squadron.Codec.tclcreate squadron procedure
proc createSquadron { type sqname abnum } {
set newid [unit create $type ]
unit set $newid bflags 3 control [objective get $abnum control] x [objective get $abnum x] y [objective get $abnum y] name $sqname unitflags 32 destx [expr [objective get $abnum x] +1] desty [expr [objective get $abnum y] +1]
return $newid
}createSquadron 405 $sqname $abnum
-
Ain´t working that TCL script baba. Problem is otherwise.
proc IsNonamed { objid } { if { [objective get $objid name] != 0 } { return 0; } set parent [objective get $objid parent] if { $parent == 0 } { return 0; } if { [objective get $parent name ] == 0 } { return 1; } else { return 0; } } proc ForceName { objid } { objective set $objid name [campaign name2id -create [objective name $objid] ] } set nnames 0 foreach var [lsort -real [objective list]] { if { [IsNonamed $var] == 1 } { printout "Changed name for: [objective name $var]" ForceName $var incr nnames 1} } printout "All done, total of $nnames objectives renamed."