Login

russian armor

How to open console commands on Company of Heroes

2 Nov 2016, 22:30 PM
#1
avatar of Olhausen
Modmaker Badge

Posts: 245

Hi to all:

I find this tutorial on Steam about how to open the game console. I follow all the steps one by one but I fail. The key convination to open the console dont work.
My question is:

a. What I could doing wrong ?
b. Anyone have another tutorial or have a clue about how I could open the game console.

Important: I am trying to opening the game console in a game vs AI using my own mod.

Link to Steam totorial:

Your text..


Tutorial to open the game console:

First thing you need to set the game up so you can use console

. Step 1 go to the game
. Step 2 right click on the game select game properties
. Step 3 click on launch options
. Step 4 type this exactly as i do -dev and then hit enter



and thats it now when you start a match thats not online hit ctrl shift and ` you can also use ctrl-shift and ` or ¬ and for some ctrl-shift and ' or @



ok now you can use console here are a few commands


1.make the popcap larger] Player_SetPopCapOverride(Game_GetLocalPlayer(), 1000)

2.change resources] Player_SetResource(Game_GetLocalPlayer(),RT_Fuel, 9999)

3.change resources] Player_SetResource(Game_GetLocalPlayer(),RT_Manpower, 9999)

4.change resources] Player_SetResource(Game_GetLocalPlayer(),RT_Munition, 9999)

5.reveal the map] FOW_RevealAll

6.take good screen shots]taskbar_hide

7. to make taskbar appear]taskbar_show


In order for this to work you need to type it in exactly like i did use uppercase letter where there's uppercase letters.



Thank you in advance
Olhausen.

3 Nov 2016, 00:41 AM
#2
avatar of eliw00d
Honorary Member Badge

Posts: 756 | Subs: 8

Ctrl+Shift+~ for normal console, Alt+Shift+~ for SCAR console. Maybe your keyboard has a different key for tilde?
3 Nov 2016, 13:12 PM
#3
avatar of Olhausen
Modmaker Badge

Posts: 245

Thanks a lot for your help Eliwood. And yes on my keyborad works with the (ñ) is a spanish keyboard.
Now I will try to help my team mate to do the same ;)

Best regards
Olhausen
3 Nov 2016, 19:36 PM
#4
avatar of Maiden116

Posts: 8

Another quiestion,
I'm trying to add an custom upgrade to the current or "local" player.


Player_CompleteUpgrade(Game_GetLocalPlayer(), BP_GetUpgradeBlueprint("luftwaffe_doctrine"))

but i cannot find the way that BP_GetAbilityBlueprint function returns the custom upgrade, it works with the vanilla ones but not with the custom
3 Nov 2016, 21:07 PM
#5
avatar of eliw00d
Honorary Member Badge

Posts: 756 | Subs: 8

You need to prepend the blueprint name with "yourModId:".
4 Nov 2016, 21:36 PM
#6
avatar of Maiden116

Posts: 8

Sorry to bother again, I need to find a way to get the player who is "clicking" a button or the "localPlayer", i was using Game_GetLocalPlayer() function but as u said on another forum when you use this one on MP it gerenate a SYNC Error.

My idea is to make a Doctrine tree like COH 1 , but for that i need to know which race is using the player and building the specific UI for each race.
5 Nov 2016, 14:58 PM
#7
avatar of eliw00d
Honorary Member Badge

Posts: 756 | Subs: 8

Everything you need to know can be found in the official wiki: http://modding.companyofheroes.com/scripting-ui

Also, I would recommend checking out my UI Control API for reducing development time on UI stuff: https://github.com/eliw00d/UIControlAPI

I have not updated it in a year but could if needed.
5 Nov 2016, 23:11 PM
#8
avatar of Maiden116

Posts: 8

Thanks eliw00d for the reply!

Another quick question, there is anyway to get properties of a blueprint?

I get the upgrade blueprint from BP_GetUpgradeBlueprint("1264682de12e41ac83a6207c8bda5bc7:svt_armoured_guard") but i need to get the screen_name property. I find a way to getting it with the LocStrID, but if i make it like that i'll have to hard code all labels.


5 Nov 2016, 23:40 PM
#9
avatar of eliw00d
Honorary Member Badge

Posts: 756 | Subs: 8

That is the only way.

On a related note, I released a new version of UI Control API: https://github.com/eliw00d/UIControlAPI/releases/tag/2.0.0
11 Nov 2016, 17:56 PM
#10
avatar of Maiden116

Posts: 8

Another question if u don't mind , there is any way to add a tooltip to a custom button, vanilla buttons shows a tooltip when u mouseover them. Can u add this functionality to custom icons?
12 Nov 2016, 14:49 PM
#11
avatar of eliw00d
Honorary Member Badge

Posts: 756 | Subs: 8

12 Nov 2016, 19:13 PM
#12
avatar of Maiden116

Posts: 8

=/ Its a shame, well i'll have to find a work around
Thanks eliw00d =D
17 Nov 2017, 06:56 AM
#13
avatar of inwilled

Posts: 3

Ctrl+Shift+~ for normal console, Alt+Shift+~ for SCAR console. Maybe your keyboard has a different key for tilde?
10 May 2022, 08:40 AM
#14
avatar of Natustell

Posts: 9

Can I use console commands to change the keybindings?
1 user is browsing this thread: 1 guest

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

493 users are online: 493 guests
3 posts in the last 24h
4 posts in the last week
23 posts in the last month
Registered members: 48722
Welcome our newest member, asherllc
Most online: 2043 users on 29 Oct 2023, 01:04 AM