The common 'talk about everything and nothing' corner. The beer is free so don't hesitate to have one.
Post Reply [phpBB Debug] PHP Warning: in file
[ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line
1275:
count(): Parameter must be an array or an object that implements Countable
-
deathguppie - Apprentice
- Posts:19
- Joined:Sat May 20, 2006 5:06 pm
- Location:seattle WA USA
-
Contact:
.smd exporter blender 2.48
Post
by deathguppie » Fri Oct 17, 2008 2:41 am
Hey,
I am wanting to do a mod for Valve's game coming out Left 4 Dead.. and I found your exporter, but it's not working right.
The error is..
Now I am confuzzled. What shall I do with "none"?!
I know you probably don't have a lot of time to work on stuff like this, and really I hate to even ask, but Blender doesn't have a lot of options for exporting to commercial game engines.. so unless this works, I am stuck trying to do something with the old doom3 engine. That is if I want a fully functional game to mod. So I thought I would ask anyway..
So perhaps you might have time to look at it.. maybe?? please??

-
Dragonlord
- Forum Administrator
- Posts:609
- Joined:Fri Jul 30, 2004 4:30 pm
- Location:Switzerland
-
Contact:
Post
by Dragonlord » Fri Oct 17, 2008 5:46 pm
Do not run the script directly. It's mean to be run from the "export" menu. If you run it otherwise it has no clue what you want it to do so it bails out. Maybe I should change that error message once upon time


Oh to be a dragon, of silkworm size or immense...
-
deathguppie - Apprentice
- Posts:19
- Joined:Sat May 20, 2006 5:06 pm
- Location:seattle WA USA
-
Contact:
Post
by deathguppie » Sat Oct 18, 2008 2:39 am
Thanks

but now it has this problem..
Code: Select all
SyntaxError: Non-ASCII character '\xfc' in file /home/deathguppie/.blender/scripts/hl2_smd_mesh_export.py on line 6, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
-
Dragonlord
- Forum Administrator
- Posts:609
- Joined:Fri Jul 30, 2004 4:30 pm
- Location:Switzerland
-
Contact:
Post
by Dragonlord » Sat Oct 18, 2008 6:46 pm
Try re-downloading the file. This looks more like a problem outside the reach of blender or python. Should the problem prevail can you post your blender version, python version and system?

Oh to be a dragon, of silkworm size or immense...
-
deathguppie - Apprentice
- Posts:19
- Joined:Sat May 20, 2006 5:06 pm
- Location:seattle WA USA
-
Contact:
Post
by deathguppie » Sun Oct 19, 2008 8:07 pm
got it...
Both of the files on the moddb thread the .zip and the tar.bz2 have two non UT-8 encoded characters in both instances of your name. I fixed them and the script works.
Thanks for your time

-
mahmoud - First Steps
- Posts:2
- Joined:Tue May 26, 2009 10:05 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Post
by mahmoud » Tue May 26, 2009 10:06 pm
Hello
i am having the same probleme but i cannot figure out the solution
can you help me please?
deathguppie wrote:Thanks

but now it has this problem..
Code: Select all
SyntaxError: Non-ASCII character '\xfc' in file /home/deathguppie/.blender/scripts/hl2_smd_mesh_export.py on line 6, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
my blender is 2.48a, my python is 3.1b1 and my system is windows xp sp3
thank you
-
Dragonlord
- Forum Administrator
- Posts:609
- Joined:Fri Jul 30, 2004 4:30 pm
- Location:Switzerland
-
Contact:
Post
by Dragonlord » Wed May 27, 2009 6:03 pm
Yeah, that's a known problem and happens with the new Python Interpreter. They changed the rules for text encoding which causes this problem. This mess happens just because of my family name. Python hates it

. Can be fixed by adding the following line as the second line in the script ( right under #!BPY ):
# coding: utf8

Oh to be a dragon, of silkworm size or immense...
-
mahmoud - First Steps
- Posts:2
- Joined:Tue May 26, 2009 10:05 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Post
by mahmoud » Wed May 27, 2009 6:47 pm
i did it but i still have the same error, with the animation i was working with or a simple cube which i added a bone and weightpainted each vertice
"
it says the problem is "SyntaxError: 'utf8' codec cant' decode bytes in position 0-5: unsupported Unicode code range"
is there a new version i missed?
thank you
edit: i fixed it, its utf-8 and not utf8
-
Dragonlord
- Forum Administrator
- Posts:609
- Joined:Fri Jul 30, 2004 4:30 pm
- Location:Switzerland
-
Contact:
Post
by Dragonlord » Fri May 29, 2009 3:21 pm
This is strange. It's utf8 over here and nobody had a problem yet with that encoding. Are you using an official stable Python release?

Oh to be a dragon, of silkworm size or immense...
Post Reply [phpBB Debug] PHP Warning: in file
[ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line
1275:
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
1275:
count(): Parameter must be an array or an object that implements Countable