Error when Starting Up

All public release bug reports or requests for help, large and small, go in here.
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
nt10546
Posts: 2
Joined: Sun Apr 26, 2025 4:41 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Error when Starting Up

Post by nt10546 » Sun Apr 26, 2025 4:48 pm



I get that error when I try to start up HL2 Wars. I have The Orange Box and launched everything in there to be sure but it still doesn't work.

migedith
Posts: 49
Joined: Wed Mar 18, 2025 8:03 pm
Location: USA
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Error when Starting Up

Post by migedith » Mon Apr 27, 2025 7:16 am

Looks familiar. Have you tried restarting steam? Sometimes I get errors similar to this and a steam restart fixes it. You may also want to clear steam cache, there should be instructions on how to do it on the steampowered.com support section.
Combine wrote:I modifing hl2wars!!!

nt10546
Posts: 2
Joined: Sun Apr 26, 2025 4:41 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Error when Starting Up

Post by nt10546 » Thu Apr 30, 2025 1:57 am

I tried looking for it at steampowered.com's support section but the directions it gave me only applied to games, not Third Party Mods.

User avatar
pandango
Developer
Posts: 690
Joined: Mon Dec 29, 2024 12:54 am
Location: Noord-Brabant, Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Error when Starting Up

Post by pandango » Thu Apr 30, 2025 10:52 am

try to google it... i googled some errors 2 and it helped me fix it ;)

Vman
Posts: 5
Joined: Thu May 14, 2025 2:08 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Error when Starting Up

Post by Vman » Thu May 14, 2025 2:20 pm

Got the same problems as you some times.it could be your vista. I re installed my os to Windows XP and no errors so far.

User avatar
BiotecVirus
Contributor
Posts: 650
Joined: Wed Dec 26, 2024 9:56 pm
Location: England
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Error when Starting Up

Post by BiotecVirus » Thu May 14, 2025 3:32 pm

Its not vista related. I have vista and never had ANY issues with HL2wars. Its most likely a installation issue.
"There are 10 kinds of people in the world, those that understand binary and those that don't."
"The Imperial Guard doesn't dig the enemy out of fortifications. It blasts them out, then occupies the craters." ~Sonsoftauras

User avatar
ixidron
Posts: 443
Joined: Fri Dec 19, 2024 5:58 pm
Location: Spain
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Error when Starting Up

Post by ixidron » Thu May 14, 2025 5:44 pm

windows Vista for me is like saying windows sight in english

Sandern
Developer
Posts: 1984
Joined: Thu Nov 22, 2024 6:58 pm
Location: Netherlands
Contact:

Re: Error when Starting Up

Post by Sandern » Fri May 15, 2025 5:00 pm

It means something is wrong with your Episode two installation.

User avatar
JeCa
Posts: 23
Joined: Mon Aug 04, 2024 4:32 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Error when Starting Up

Post by JeCa » Sun May 17, 2025 7:26 pm

Sometimes (it's worked once for me) you do not only need to have all game installed, but also a proper save file for each of them. I'm not trying to disprove Sander, but you could try starting and saving a game of ep2.
console wrote: Convar r_skin has conflicting FCVAR_CHEAT flags (child: no FCVAR_CHEAT, parent: FCVAR_CHEAT, parent wins)
See? They know how it works.

geezlers
Posts: 1
Joined: Tue Jul 07, 2024 9:51 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Error when Starting Up

Post by geezlers » Tue Jul 07, 2024 9:54 pm

I had an engine error very similar to yours and it was related to the cache file. A guy told me to Right click Half-Life 2: Episode 2 > Properties > Local Files tab > Verify Integrity of game cache. This solved the crashing problem for me.

Jackthemaster
Posts: 2
Joined: Sat Aug 22, 2024 8:27 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Error when Starting Up

Post by Jackthemaster » Sat Aug 22, 2024 8:36 pm

I get this error too but I did like you said but i still get the error. Should i try reinstalling episode 2, because I really dont want too. My internet connection over steam is like 80 kb/s :(

Sandern
Developer
Posts: 1984
Joined: Thu Nov 22, 2024 6:58 pm
Location: Netherlands
Contact:

Re: Error when Starting Up

Post by Sandern » Sat Aug 22, 2024 8:48 pm

Also try verifying "Source sdk base - orange box" in the tools tab.

Jackthemaster
Posts: 2
Joined: Sat Aug 22, 2024 8:27 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Error when Starting Up

Post by Jackthemaster » Sun Aug 23, 2024 6:25 pm

well i tried everything so i decided on redownloading hl2:ep2...AND IT WORKED!!! Too bad it only took me 14h 42m 29s :lol:

dabby
Posts: 82
Joined: Sun Mar 08, 2025 11:07 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Error when Starting Up

Post by dabby » Sat Sep 05, 2024 12:13 pm

took me a week to install.. lucky

Badjack
Posts: 41
Joined: Mon Jul 20, 2024 8:04 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Error when Starting Up

Post by Badjack » Sat Sep 26, 2024 8:54 am

so does it work now?




PS if i necroposted this I'm sorry but this keeps showing up as new, something's wrong with the site or how i see the site or something?

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 3 guests