[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 580: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 636: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4511: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3257)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4511: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3257)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4511: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3257)
Unable to run OpenBW - OpenBW
[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
 
funnyhaha
Topic Author
Posts: 1
Joined: Sat Oct 07, 2017 10:44 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

Unable to run OpenBW

Sat Oct 07, 2017 11:28 am

This is most likely not a bug.

Here's what I did on a otherwise clean Ubuntu 16.04 desktop install:

1. apt-get install libsdl2-2.0-0 libsdl2-dev git vim cmake gcc make build-essential
2. the install-section from the repo: https://github.com/OpenBW/bwapi#build--install

3. copied the mpq files to the bin/ folder:
md5sum *.mpq
5c435893f2474a09ee358f43899fac8c  BrooDat.mpq
6c132d84cb4758e3dc1135f0f9af74cf  Patch_rt.mpq
bcfa0ce1e93245de5cfd398f0b8c5b54  StarDat.mpq
4. copied a map to maps/Python.scx

5. created a bwapi-data/bwapi.ini with the following content:
ai = "/home/bw/bwapi/build/lib/TestAIModule.so"
auto_menu = OFF
character_name = "test"
map = "/home/bw/bwapi/build/bin/maps/Python.scx"
race = "Terran"
Now my ~/bwapi/build/bin folder looks like this:
bwapi-data/
bwapi-data/bwapi.ini
maps/
maps/Python.scx
BWAPILauncher
BrooDat.mpq
Patch_rt.mpq
StarDat.mpq
Trying to run BWAPILauncher now, I get "Error: file_reader: failed to open  for reading".

Looks like there's a file missing, but it doesn't tell me which file? Am I missing a dependency? What am I doing wrong?

I don't know if it's worth anything, but here's a strace of ./BWAPILauncher: https://pastebin.com/qb638J2q
 
IMP
Site Admin
Posts: 63
Joined: Sun Jan 01, 2017 4:59 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: Unable to run OpenBW

Fri Oct 13, 2017 3:39 pm

Edit: you should get a complete BWAPI.ini and modifiy its entries rather than write your own from scratch. For example, your version does not have any sections ( [ai], ...).

Try with this one and adapt to your needs:
https://github.com/OpenBW/BWAPI4J/blob/ ... ini.sample

It shouldn't make a difference, but you can also specify relative paths in bwapi.ini. E.g. just "maps/(4)Python.scx".

If you still can't get it to work please join us at #openbw on irc.freenode.net
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
[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 1 guest