Login

russian armor

Zoomed Out Camera and WinConditionPack

22 Feb 2019, 23:53 PM
#1
avatar of BoshelvikHall

Posts: 54

I followed Eliwood's tutorial using scar but when I load in the game the units can't be moved and the camera zoom out function I added in scar isn't working.

I copy pasted default.win and default.scar codes he used linked in the Youtube video.





26 Feb 2019, 04:57 AM
#2
avatar of eliw00d
Honorary Member Badge

Posts: 756 | Subs: 8

If the game seems like it's "paused", that means you have a fatal SCAR error. You can bring up the console with Control + Shift + ~ to see what it is.

Otherwise, make sure your WCP looks like:

https://github.com/eliw00d/example-win-condition-pack
26 Feb 2019, 08:42 AM
#3
avatar of BoshelvikHall

Posts: 54

jump backJump back to quoted post26 Feb 2019, 04:57 AMeliw00d
If the game seems like it's "paused", that means you have a fatal SCAR error. You can bring up the console with Control + Shift + ~ to see what it is.

Otherwise, make sure your WCP looks like:

https://github.com/eliw00d/example-win-condition-pack



this is what it looks like: https://i.imgur.com/6bQ4gJG.jpg


screenshot of console: https://i.imgur.com/NWFzOvt.jpg
26 Feb 2019, 14:39 PM
#4
avatar of eliw00d
Honorary Member Badge

Posts: 756 | Subs: 8

You might have to page up to find it.
27 Feb 2019, 08:11 AM
#5
avatar of BoshelvikHall

Posts: 54

jump backJump back to quoted post26 Feb 2019, 14:39 PMeliw00d
You might have to page up to find it.



Ok I went up further and found these 2 parts that say "fail":

https://i.imgur.com/4IahMeT.jpg

https://i.imgur.com/CfEzrCL.jpg
28 Feb 2019, 04:07 AM
#6
avatar of eliw00d
Honorary Member Badge

Posts: 756 | Subs: 8

You need to have your code inside the WinCondition_Init function or another init function (via Scar_AddInit) in order to make use of SCAR functions.

I would suggest watching https://youtu.be/RnNdGDXOvbQ, or specifically https://youtu.be/RnNdGDXOvbQ?t=164

Also, per the SCAR doc:


When the game engine reads your *.scar file, anything in the global scope will be immediately called. This may cause problems as some functions are not meant to be used until the game has loaded up all of its components.

The function Scar_AddInit( FunctionName ) can be used to kick off your script. This tells the game engine "When you are ready, call the function FunctionName first."

- http://www.fortresseuropemod.com/scardoc/
28 Feb 2019, 07:51 AM
#7
avatar of BoshelvikHall

Posts: 54

jump backJump back to quoted post28 Feb 2019, 04:07 AMeliw00d
You need to have your code inside the WinCondition_Init function or another init function (via Scar_AddInit) in order to make use of SCAR functions.

I would suggest watching https://youtu.be/RnNdGDXOvbQ, or specifically https://youtu.be/RnNdGDXOvbQ?t=164

Also, per the SCAR doc:


- http://www.fortresseuropemod.com/scardoc/



Woot! I fixed it!
that's the video I had watched and rewatching I saw my mistake. My code was outside the Rule_ AddInterval.
28 Feb 2019, 22:42 PM
#8
avatar of eliw00d
Honorary Member Badge

Posts: 756 | Subs: 8

Awesome! Glad you fixed it.
1 user is browsing this thread: 1 guest

SHOUT IT OUT!

No ProfanityNumber of ShoutsRefresh Shout Box
dasheepeh: it was an honor guys :guyokay:
Today, 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:
Today, 20:29 PM
Rosbone: @dasheepeh I guess that means this site is officially dead :guyokay:
Today, 20:19 PM
dasheepeh: no comic sans font for april 1st this year?
Today, 19:56 PM
Willy Pete: @Lady Xenarra this you? https://i.imgflip.com/3e4thi.jpg
Today, 02:53 AM
Lady Xenarra: Does anyone else think that USF needs buffs? It feels like they’re on life support sometimes
Today, 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
Last Thursday, 15:46 PM
Rosbone: It is also good they left it free until after the free to play weekend. Points for that.
Last Thursday, 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.
Last Thursday, 09:32 AM
Rosbone: To be fair, it was a thank you to early fans right? They said it was not free for long and it would become a pay DLC at some point.
Last Thursday, 09:30 AM
Willy Pete: Re-releasing free DLC so they can charge new players money for it. Brilliant marketing strategy :clap:
Last Thursday, 04:31 AM
Soheil: Coh2 still broken server ?
25 Mar 2025, 18:27 PM
Rosbone: Congrats to Relic. Looks like Coh3 has finally usurped Coh2 s the popular Coh. You smell terrific. :snfQuinn:.
24 Mar 2025, 02:46 AM
Nickbn: and again someone else replies. I mean come on guys. Give @adamírcz a chance
22 Mar 2025, 14:00 PM
Willy Pete: @Nickbn you didn't ask a question, and this is a chat box...
20 Mar 2025, 13:11 PM
Nickbn: @Rosbone it's incredibly rude to speak on someone elses behalf, especially when a question is directly adressed to them. I understand your passion for the subject at hand but I want to hear from him.
20 Mar 2025, 10:16 AM
Rosbone: @Nickbn No, I am just saying people should not be using any Relic owned forum since they have proven they ban anyone who says true things about Coh3.
18 Mar 2025, 19:01 PM
Nickbn: @Rosbone do you speak on his behalf? I didn't know. In that case keep us updated please.
18 Mar 2025, 16:47 PM
Rosbone: #RelicModdedEchoChamber
16 Mar 2025, 17:54 PM
Rosbone: @Nickbn True except, the only people on the Relic Discord/Reddit/Steam are brain washed monkey zealots. They wont even understand what @adamírcz is talking about. Anyone else is banned.
16 Mar 2025, 17:54 PM

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

696 users are online: 696 guests
2 posts in the last 24h
11 posts in the last week
81 posts in the last month
Registered members: 53135
Welcome our newest member, tx88gay
Most online: 2043 users on 29 Oct 2023, 01:04 AM