Login

russian armor

Company of Heroes 3 Modding guide

18 Mar 2023, 09:47 AM
#1
avatar of Tiger Baron

Posts: 3145 | Subs: 2

Hello everybody, I made this a few days ago from my experience of modding CoH3 -

https://steamcommunity.com/sharedfiles/filedetails/?id=2946936025

I wanted to share it and hopefully get some feedback like what I can improve, some more ideas/suggestions on what to add and also perhaps maybe some help with information about map making and the game modes since I'd like to expand it there as well for those interested in the subject matter.

Thanks in advance and have a nice day, cheers.
28 Apr 2023, 05:42 AM
#2
avatar of Gbpirate
Senior Editor Badge

Posts: 1155 | Subs: 1

Nice guide, thanks for sharing!
28 Apr 2023, 10:39 AM
#3
avatar of Rosbone

Posts: 2160 | Subs: 2

Someone called you Chief in the comments, so you know its good! Thanks!

THE MORE YOU KNOW PSA with Donkey Rosbone
Textures/Images in video games are usually a power of 2. This is done to speed up drawing repeating patterns using a boolean AND function to reset the pattern. Computers work in BINARY. Which is a number system based on 2.

Example to draw a repeating 8 pixel texture:
Normal way to increment and repeat a pattern:
Xpos = Xpos + 1
if (7 < Xpos) Xpos = 0

Faster way to do it:
Xpos = (Xpos + 1) AND 7

The Inner Loop
Both ways create a pattern of:
01234567 01234567 01234567 01234567

But the AND version is faster to do on a microprocessor. And this code is run more than any other code when drawing graphics. So any tiny improvement in speed is huge because this will be done millions of times per frame of video.

To render a texture to the screen there are several nested for/loops used and this is the one that is inside all the others, gets run the most, and is known as the inner loop. The faster your inner loop, the faster your game will render.

When 3D graphics first appeared this was necessary to get graphics to run smooth on a CPU based rendering engine. With modern video cards (GPU) doing the work on multiple dedicated pipelined processors, the power of 2 limit is not necessarily needed any more for speed. But still a requirement most of the time.

I hope some of that made sense. Since I am clearly insane, it probably did not.
28 Apr 2023, 11:17 AM
#4
avatar of Tiger Baron

Posts: 3145 | Subs: 2

Nice guide, thanks for sharing!


No worries, feedback would be appreciated.

jump backJump back to quoted post28 Apr 2023, 10:39 AMRosbone
Someone called you Chief in the comments, so you know its good! Thanks!

THE MORE YOU KNOW PSA with Donkey Rosbone
Textures/Images in video games are usually a power of 2. This is done to speed up drawing repeating patterns using a boolean AND function to reset the pattern. Computers work in BINARY. Which is a number system based on 2.

Example to draw a repeating 8 pixel texture:
Normal way to increment and repeat a pattern:
Xpos = Xpos + 1
if (7 < Xpos) Xpos = 0

Faster way to do it:
Xpos = (Xpos + 1) AND 7

The Inner Loop
Both ways create a pattern of:
01234567 01234567 01234567 01234567

But the AND version is faster to do on a microprocessor. And this code is run more than any other code when drawing graphics. So any tiny improvement in speed is huge because this will be done millions of times per frame of video.

To render a texture to the screen there are several nested for/loops used and this is the one that is inside all the others, gets run the most, and is known as the inner loop. The faster your inner loop, the faster your game will render.

When 3D graphics first appeared this was necessary to get graphics to run smooth on a CPU based rendering engine. With modern video cards (GPU) doing the work on multiple dedicated pipelined processors, the power of 2 limit is not necessarily needed any more for speed. But still a requirement most of the time.

I hope some of that made sense. Since I am clearly insane, it probably did not.


And thank you for your explanation but I was more hoping for something concerning CoH3's modding and/or the guide itself.
1 user is browsing this thread: 1 guest

SHOUT IT OUT!

No ProfanityNumber of ShoutsRefresh Shout Box
aerafield: @LimaOscarMike I would say nowadays is a decent time to try CoH3. If you loved CoH2 however, there is a solid chance you're gonna dislike CoH3
Today, 17:04 PM
LimaOscarMike: My laptop can't even run COH3. Should I get them on my Series X or is it dead yet?
Last Saturday, 05:10 AM
Rosbone: One of my last major gripes about Coh3. Price is still too high I feel for growth. But progress is always good.
Last Saturday, 04:43 AM
Rosbone: I am not 100% sure but I think Relic actually fixed up the skirmish menus a little last patch. If so, thank you and keep it coming.
Last Saturday, 04:39 AM
Osinyagov: Suddenly, coh2 is slowly dying, but you can play it, playerbase still big enough
09 Apr 2025, 17:00 PM
Osinyagov: Wow, i remember you from zansi and vali videos, good old memories
09 Apr 2025, 16:58 PM
Beinhard: o7 miss this game and zansi
09 Apr 2025, 14:09 PM
Lady Xenarra: @Willy Pete The lack of April Fools this year is odd lol
02 Apr 2025, 01:34 AM
Willy Pete: @Rosbone not dead yet. when that happens the font will switch to Papyrus :*(
02 Apr 2025, 00:16 AM
dasheepeh: it was an honor guys :guyokay:
01 Apr 2025, 20:34 PM
aerafield: yeah I already prepared my "Can't believe there's comic mode for the 10 daily visitors even on this April 1st" :guyokay:
01 Apr 2025, 20:29 PM
Rosbone: @dasheepeh I guess that means this site is officially dead :guyokay:
01 Apr 2025, 20:19 PM
dasheepeh: no comic sans font for april 1st this year?
01 Apr 2025, 19:56 PM
Willy Pete: @Lady Xenarra this you? https://i.imgflip.com/3e4thi.jpg
01 Apr 2025, 02:53 AM
Lady Xenarra: Does anyone else think that USF needs buffs? It feels like they’re on life support sometimes
01 Apr 2025, 02:36 AM
Willy Pete: @Rosbone Ahh I missed that memo. I still think its a bad decision though. Adds frustration for players and isnt gonna make them that much money
27 Mar 2025, 15:46 PM
Rosbone: It is also good they left it free until after the free to play weekend. Points for that.
27 Mar 2025, 09:34 AM
Rosbone: But I agree, the cost to get a full decent Coh game pushing $115 US is not the best idea. Especially when it needs so much more work for casuals.
27 Mar 2025, 09:32 AM

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

454 users are online: 454 guests
0 post in the last 24h
6 posts in the last week
37 posts in the last month
Registered members: 53852
Welcome our newest member, kennethcbardach
Most online: 2043 users on 29 Oct 2023, 01:04 AM