Giter Site home page Giter Site logo

aura-bot's People

Contributors

argon- avatar fornever avatar hedede avatar josko avatar luciouskami avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aura-bot's Issues

Hello,I need some help,if you can give it to me!

How can convert your x64 compatible BNCSutil to one compatible with the vanilla ghost++?
It gives me a ton of errors,if I try to compile the one with ghost++ for x64.
I really need some functionality from the vanilla one.

Current list of commands

README states More commands added either ingame or bnet

Is there a list of the current commands?

HowTo: Windows

I didn't manage to compile it with Windows using VS2017, said a lot of files was missing. Can someone make an extended guide to it? Just following the little guide didn't work, so seems to be out of date or something.

Error ‘-std=c++11’

root@bn:/home/auradev/aura# make && make install
cc1plus: error: unrecognized command line option ‘-std=c++11’

ubuntu server 12.04 LTS

A few questions/issues

Hello!

I tried out your bot and am having a few issues so I would like to ask some questions if that would be okay. I used the bot on battle.net as well as eurobattle, on battle.net I have the problem thought that I occassionally get socket errors on all realms and the bot becomes unable to reconnect. Is this due to the missing BNLS?

Second, is there a way to disable the gameover timer or do I have to recompile it? it doesn't help at all when you are playing games like RPGs for example and suddenly remaining player disconnects because someone leaves.

Is there a way to have messages displayed in chat/battle.net? For example when I'm trying to host and the gamename is already taken, then it won't say anything but in the console you will see that the gamename is already in use.

And my last question, would it be possible to implement Discord? Or is it very difficult? It's far more popular for gaming I think and thus having it there would only be beneficial, but perhaps I'm wrong. Just asking out of curiosity.

Thank you in advance for reading and hopefully replying! :)

New patch 1.27b

Since BZ has updted war3 again,now the current war3 version is 1.27b(1.27.1.7085).If it is need to change aura.cfg,how can I get the "exeversion" and the "exeversionhash"?

Technical issues

Good afternoon, my name is Venmade.
I am the administrator of the gaming platform "Garena" and the Creator of the game platform "WarCIS" which is based on PVPGN.

I have been looking at your project for a long time, and I would like to clarify:
1. Is it possible to add support Mysql? "Mariadb"
The fact is that our gaming client is integrated with the forum. "Xenforo"
And further, it will be inter- naled with the chat messenger, all this is not supported in the sqlite.

2. Is it possible to restore a record of replays?
Although we also have an anti-cheat system that does not miss the use of map hacks, speed hacks and tricky programs giving advantage to the player.
But, at times, players behave very inadequately or violate the rules of the game.
Replays are very important in this case.

3. Multithreading?
#35
(Not a priority, since we run 4-5 copies of the bot on 1 account.)

4. W3MMD support
We would like the host bot to be able to read the game data from the maps, where the statistics system is built-in.
This is also important.

By modifications, there are no more questions.
Everything else is perfect for us.


If you do not have enough time to develop, we could discuss with you the possibility of paying for the restoration of the features I wrote about above.
Thank you for your attention and I look forward to hearing from you!

Venmade.

Connect with RoC only

Is it possible with the current version to launch the bot RoC only mode?

Edit: Ok, it's not. I'll try to do it myself.

Script files in the Patch mpq are not found

New ticket separated from an user report here #43.

Basically when starting the bot it does not find the script files which should be normally in there. Task would be the investigate the patch file itself, StormLib (which is used to open and browse it) and code in aura.cpp.

Visible on startup of the bot:

[AURA] loading MPQ file [/data/Warcraft III/War3Patch.mpq]
[AURA] couldn't find Scripts\Common.j in MPQ file
[AURA] couldn't find Scripts\Blizzard.j in MPQ file

Two issues: Bot hangs on startup, as well as "game version is too old".. Sometimes?

Sometimes when I launch the bot, it'll hang somewhere in this process and not continue.
And sometimes, I connect to certain servers but not others.

[BNET: USEast] connecting to server [useast.battle.net] on port 6112
[BNET: USEast] resolved and cached server IP address 199.108.55.57
[BNET: USWest] connecting to server [uswest.battle.net] on port 6112
[BNET: USWest] resolved and cached server IP address 12.129.236.19
[BNET: Asia] connecting to server [asia.battle.net] on port 6112
[BNET: Asia] resolved and cached server IP address 121.254.164.19
[BNET: Europe] connecting to server [europe.battle.net] on port 6112
[BNET: Europe] resolved and cached server IP address 5.42.181.18
[BNET: USEast] connected
[BNET: USWest] connected
[BNET: Europe] connected
[BNET: USEast] attempting to auth as Warcraft III: The Frozen Throne
[BNET: Asia] connected
[BNET: USWest] attempting to auth as Warcraft III: The Frozen Throne
[BNET: USEast] cd keys accepted
[BNET: Europe] attempting to auth as Warcraft III: The Frozen Throne
[BNET: USEast] username [---] accepted
[BNET: USEast] using battle.net logon type (for official battle.net servers only)
[BNET: USEast] logon successful
[BNET: USEast] joining channel [The Void]
[BNET: USWest] cd keys accepted
[BNET: Europe] logon failed - game version is too old, disconnecting
[BNET: USWest] username [---] accepted
[BNET: USWest] using battle.net logon type (for official battle.net servers only)
[BNET: Europe] disconnected from battle.net
[BNET: USEast] joined channel [The Void]
[INFO: USEast] This channel does not have chat privileges.
[WHISPER: USEast] [# Email Service #] Note: Email on record is [---]
[BNET: Asia] attempting to auth as Warcraft III: The Frozen Throne
[BNET: USWest] logon successful
[BNET: USWest] joining channel [The Void]
[BNET: Asia] logon failed - game version is too old, disconnecting
[BNET: Asia] disconnected from battle.net
[BNET: USWest] joined channel [The Void]
[INFO: USWest] This channel does not have chat privileges.
[WHISPER: USWest] [# Email Service #] No email on record. You must first set an email by using the command /set-email [email]
(End; --- is inserted for privacy purposes)

Attempting to launch the bot a few more times, it finally finished executing everything, AND connected to all 4 servers, however it then hung again.
I will note that it sometimes will finish starting and get in-game to the point where it will accept and respond to commands, but it doesn't connect to all the servers.
One time it even got to the point where I hosted a game (only worked on 2 servers,) and other people joined it, but then the bot hung and I couldn't join.
Unusable at this point in time.

Not working with Patch 1.27

I updated the wc3 files on my server and put Version 27 everywhere instead of 26, but the authentication to battle.net fails every time.
Error message: logon failed, game version is invalid

Cannot run make successfully

I cannot make it successfully, can you please check it if you dont mind? The error shows this:

g++ -o StormPortLinux.o -fPIC -O2 -D__SYS_ZLIB -c StormPortLinux.cpp
StormPortLinux.cpp: In function ‘char* ErrString(int)’:
StormPortLinux.cpp:46:16: warning: deprecated conversion from string constant to ‘char_’ [-Wwrite-strings]
return "function not implemented";
^
StormPortLinux.cpp:48:16: warning: deprecated conversion from string constant to ‘char_’ [-Wwrite-strings]
return "file not found";
^
StormPortLinux.cpp:50:16: warning: deprecated conversion from string constant to ‘char_’ [-Wwrite-strings]
return "access denied";
^
StormPortLinux.cpp:52:16: warning: deprecated conversion from string constant to ‘char_’ [-Wwrite-strings]
return "not enough memory";
^
StormPortLinux.cpp:54:16: warning: deprecated conversion from string constant to ‘char_’ [-Wwrite-strings]
return "bad format";
^
StormPortLinux.cpp:56:16: warning: deprecated conversion from string constant to ‘char_’ [-Wwrite-strings]
return "no more files";
^
StormPortLinux.cpp:58:16: warning: deprecated conversion from string constant to ‘char_’ [-Wwrite-strings]
return "access beyound EOF";
^
StormPortLinux.cpp:60:16: warning: deprecated conversion from string constant to ‘char_’ [-Wwrite-strings]
return "no space left on device";
^
StormPortLinux.cpp:62:16: warning: deprecated conversion from string constant to ‘char_’ [-Wwrite-strings]
return "invalid parameter";
^
StormPortLinux.cpp:64:16: warning: deprecated conversion from string constant to ‘char_’ [-Wwrite-strings]
return "no space left on device";
^
StormPortLinux.cpp:66:16: warning: deprecated conversion from string constant to ‘char_’ [-Wwrite-strings]
return "file exists";
^
StormPortLinux.cpp:68:16: warning: deprecated conversion from string constant to ‘char_’ [-Wwrite-strings]
return "operation cannot be completed";
^
StormPortLinux.cpp:70:16: warning: deprecated conversion from string constant to ‘char_’ [-Wwrite-strings]
return "unknown error";
^
StormPortLinux.cpp: In function ‘void_ CreateFile(const char_, DWORD, DWORD, void_, DWORD, DWORD, HANDLE)’:
StormPortLinux.cpp:79:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return (HANDLE)open(sFileName, O_RDONLY | O_LARGEFILE);
^
StormPortLinux.cpp:82:56: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return (HANDLE)open(sFileName, O_RDWR | O_CREAT);
^
StormPortLinux.cpp:86:66: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return (HANDLE)open(sFileName, O_RDWR | O_CREAT | O_TRUNC);
^
In file included from /usr/include/fcntl.h:279:0,
from StormPort.h:104,
from StormPortLinux.cpp:28:
In function ‘int open(const char_, int, ...)’,
inlined from ‘void_ CreateFile(const char_, DWORD, DWORD, void_, DWORD, DWORD, HANDLE)’ at StormPortLinux.cpp:82:56:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:26: error: call to ‘open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
open_missing_mode ();
^
In function ‘int open(const char
, int, ...)’,
inlined from ‘void
CreateFile(const char
, DWORD, DWORD, void
, DWORD, DWORD, HANDLE)’ at StormPortLinux.cpp:86:66:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:26: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
__open_missing_mode ();
^
make: *** [StormPortLinux.o] Error 1

the Load in game feature

Hey there, great work on the bot! I've been adding some commands and features from Ghost One, but I can't get my head around as to how to add the load in-game feature. Is there a chance you could add that feature in?

Cant join my game

It hosts the map, I can see it in the list, I can see the map preview etc. but when I click "Join", it always just says:

"The map you attempted to join could not be found. You may have entered the name incorrectly or the game creator may have canceled the game."

I put a breakpoint into: RECEIVE_W3GS_REQJOIN
and it never breaks there. Weird?

This is the last message I see on the console from Aura, is this correct?
[QUEUED: Europe] /w Meai Creating public game [whatever] started by [Meai]

Config:

bot_war3path = /home/pc/eclipse/sikuli/aura-bot/wc3
bot_bindaddress =
bot_hostport = 6112
bot_reconnectport = 6113
bot_reconnectwaittime = 3
bot_maxgames = 20
bot_commandtrigger = !
bot_mapcfgpath = mapcfgs
bot_mappath = /home/pc/eclipse/sikuli/aura-bot/wc3/Maps/Download/
bot_virtualhostname = |cFF4080C0Aura
bot_autolock = 0
bot_allowdownloads = 1
bot_maxdownloaders = 1
bot_maxdownloadspeed = 100
bot_lcpings = 1
bot_autokickping = 400
bot_lobbytimelimit = 10
bot_latency = 100
bot_synclimit = 50
bot_votekickpercentage = 100
bot_defaultmap = wormwar
db_sqlite3_file = aura.dbs
bnet_server = europe.battle.net
bnet_serveralias = Europe
bnet_cdkeyroc = XXXXXXXXX
bnet_cdkeytft = XXXXXXXXX
bnet_locale = system
bnet_username = aura
bnet_password = XXXXXXXXXX
bnet_firstchannel = The Void
bnet_rootadmins = Meai
bnet_commandtrigger = !
bnet_custom_war3version = 27
bnet_custom_exeversion =
bnet_custom_exeversionhash =
bnet_custom_passwordhashtype =
bnet_custom_pvpgnrealmname = PvPGN Realm

Error trying to make

# clang -v
clang version 3.8.0-2ubuntu3~trusty4 (tags/RELEASE_380/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9.4
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/6.2.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.2.0
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9
Candidate multilib: .;@m64
Selected multilib: .;@m64
# g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.9.4-2ubuntu1~14.04.1' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.4 (Ubuntu 4.9.4-2ubuntu1~14.04.1)
aura-bot# make
In file included from src/bncsutilinterface.cpp:23:0:
src/util.h: In function 'std::string ByteArrayToDecString(const std::vector<unsigned char>&)':
src/util.h:98:25: error: 'cbegin' was not declared in this scope
   for (auto i = cbegin(b) + 1; i != cend(b); ++i)
                         ^
src/util.h:98:43: error: 'cend' was not declared in this scope
   for (auto i = cbegin(b) + 1; i != cend(b); ++i)
                                           ^
src/util.h: In function 'std::string ByteArrayToHexString(const std::vector<unsigned char>&)':
src/util.h:111:25: error: 'cbegin' was not declared in this scope
   for (auto i = cbegin(b) + 1; i != cend(b); ++i)
                         ^
src/util.h:111:43: error: 'cend' was not declared in this scope
   for (auto i = cbegin(b) + 1; i != cend(b); ++i)
                                           ^
make: *** [src/bncsutilinterface.o] Error 1

!dcclist

!dcclist still list my name when I have closed DCC connection on my IRC client.
Only tested on local machine.

Connecting bot to multiple realms

Hey,
First of all, I gotta say this bot is amazing! Props to that!
Second, my issue: I cannot connect my bot to multiple realms. I can connect to my first realm: europe.battle.net, but not my second realm: useast.battle.net. I talked with Frotty about this, and he says he can host on multiple realms. He is using Linux tho, while i'm using windows 7 64 bit. My configuration is fine, which wasn't that hard to make with all the explanations and stuff :), so I think the problem is that I'm using windows.
I downloaded the Rolling-release source code, and the aura bot from it.
Perhaps you know of the problem, if so, maybe you can help me!
Looking forward to hear from you!

Random disconnects

Hello again, there is some issue for me with people getting disconnected after a game is running for around 3 hours.
First game:
grafik
Second game:
grafik

The issue here is that the bot just starts lagging for a player and then drops them because of "connection error - Connection reset by peer". In the first game I ran a !ping to see if anyone was lagging but that wasn't the case, yet the bot still just dropped them out of nowhere.

Also there is the disconnect from battle.net I was talking about a few days ago, I'm not sure how much it is related though.

Feature: RPC suport ?

Hi there!
Glad to see that w3 game hosting and Varlock children lives :)
I start porting ghost++ to js https://github.com/w3gh/ghost.js
But have some troubles with game.cpp and map crc calculation issues
Why js, cuz it everywhere and can be integrated anywhere :)

So, i have some ideas about bots organization.
Architecture presents a
Master bot and host bots

Master bot - always sits in channel and receive commands, have all core logic, decides who ban in a game, reacts on proxied from host bot commands.
Host bot - only can host games and communicate with master bot and send all needed stuff, like map stats and so on

https://grpc.io/ have nice docs

Unable to open War3EXE

Hello, I cannot start aura-bot due to this error:
[BNCSUI] unable to open War3EXE [] [BNET: USEast] logon failed - bncsutil key hash failed (check your Warcraft 3 path and cd keys), disconnecting
I have empty storm.dll and game.dll files as well as the new Warcraft III.exe renamed as war3.exe in a directory. This works on a vanilla ghost++ bot with minor adjustments for 1.29, but not this one. Any ideas/solutions?

I checked https://github.com/Josko/aura-bot/blob/master/src/bncsutilinterface.cpp#L80 and it appears I should be naming it Warcraft III.exe but this doesn't work either.

I am on Arch Linux with the appropriate dependencies installed, and /usr/local/lib in my path.

in linux, map not found

I have no idea about windows but in linux, if map name has some capital letters, bot is unable to find the map by .map command following with at least one of that capital letters. (not checked cfg and similar files yet)

ie: if the map name "My Awesome Map.w3x" I cannot use ".map Awesome" or ".map awesome", on the other hand I am able to use ".map wesome" but that is not good enough.

and the problem lays down in this method:

vector CBNET::MapFilesMatch(string pattern)

in bnet.cpp file. Working on a simple solution.

Cant Join Game

anonbyte: !map dota
EVENT-1: Loading map file [DotA v6.80c.w3x]
anonbyte: !pub tes bot
EVENT-1: Creating public game [tes bot] started by [anonbyte]


then the bot back again to channel
This is my cfg

BOT CONFIGURATION

bot_war3path = /home/aura/war3

bot_bindaddress =

bot_hostport = 6112

bot_reconnectport = 6113

bot_reconnectwaittime = 5

bot_maxgames = 20

bot_commandtrigger = !

bot_mapcfgpath = /home/aura/mapcfgs

bot_mappath = /home/aura/maps

bot_virtualhostname = |cFF4080C0EVENT

bot_autolock = 0

bot_allowdownloads = 0

bot_maxdownloaders = 1

bot_maxdownloadspeed = 100

bot_lcpings = 1

bot_autokickping = 250

bot_lobbytimelimit = 5

bot_latency = 100

bot_synclimit = 50

bot_votekickpercentage = 100

the default map config (the ".cfg" will be added automatically if you leave it out)

bot_defaultmap = wormwar

DATABASE CONFIGURATION

sqlite3 database configuration

db_sqlite3_file = aura.dbs

BATTLE.NET CONFIGURATION

bnet_server = bn.owlline.com

bnet_serveralias = Owlline

bnet_cdkeyroc = FFFFFFFFFFFFFFFFFFFFFFFFFF

bnet_cdkeytft = FFFFFFFFFFFFFFFFFFFFFFFFFF

bnet_locale = system

bnet_username = EVENT-1

bnet_password = 123123

bnet_firstchannel = Event

bnet_rootadmins = anonbyte owljan

bnet_commandtrigger = !

bnet_custom_war3version = 24
bnet_custom_exeversion =
bnet_custom_exeversionhash =
bnet_custom_passwordhashtype = pvpgn
bnet_custom_pvpgnrealmname = PvPGN Realm

Can't build AuraBot

Hello i'm having 3 errors while trying to build AuraBot:
1_The Referenced Project '..\StormLib\StormLib.vcxproj' does not exist.
2_Error MSB8036: The Windows SDK version 8.1 was not found.
3_Error MSB8036: The Windows SDK version 10.0.14393.0 was not found.

I never used Visual Studio so i don't know if what i did was wrong.
Here is what i did because there is no guide to compile it:
Downloaded full visual studio 2017
Downloaded AuraBot as ZIP
Double clicked on aura.sln
Clicked on Compile -> Compile Solution

Compiling Errors

Hi,
first of all nice Project. I really appreciate it, that you guys try to keep Ghost++ bzw. Warcraft 3 alive.
First Error:

cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_DYNAMIC_MODULE=1 ..

Results in:

-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.7")
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit in /usr/lib/x86_64-linux-gnu/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/x86_64-linux-gnu/libbz2.so - found
-- Building dynamic module
CMake Error at CMakeLists.txt:311 (target_compile_definitions):
Unknown CMake command "target_compile_definitions".

-- Configuring incomplete, errors occurred!

After i uncommented the target line the cmake operation, results a new Error.

  • Building dynamic module
    -- Linking against dependent libraries dynamically
    CMake Error at CMakeLists.txt:349 (install):
    install TARGETS given unknown argument "INCLUDES".

After i also uncommented the following line the Build was successfull.
Make & make install worked without any Error.

bncsutil make & make install worked without any changes.

The make file in the root Directory resultet in:
g++: error: unrecognized command line option ‘-std=c++14’
make: *** [src/bncsutilinterface.o]

Bot on ubuntu vps say "Segmentation fault (core dumped)" after description

[AURA] started loading [ip-to-country.csv]
[AURA] iptocountry data: 10% loaded
[AURA] iptocountry data: 20% loaded
[AURA] iptocountry data: 30% loaded
[AURA] iptocountry data: 40% loaded
[AURA] iptocountry data: 50% loaded
[AURA] iptocountry data: 60% loaded
[AURA] iptocountry data: 70% loaded
[AURA] iptocountry data: 80% loaded
[AURA] iptocountry data: 90% loaded
[AURA] iptocountry data: 100% loaded
[AURA] finished loading [ip-to-country.csv]
[BNET: Euro] connecting to server [europe.battle.net] on port 6112
[BNET: Euro] resolved and cached server IP address 5.42.181.16
[BNET: Euro] connected
Segmentation fault (core dumped)

Cannot build aura bot - src/sqlite3.o

I am trying to build aura bot, but when i try to compile aure itself it thorws this error, doing it on Debian 9. Thanks for any help, HamAndRock.

root@vmi167482:/home/game/W3/aura-bot# make -j 5
[g++] src/crc32.o
[g++] src/csvparser.o
[g++] src/config.o
[g++] src/bncsutilinterface.o
[g++] src/bnetprotocol.o
[g++] src/gameslot.o
[g++] src/gpsprotocol.o
[g++] src/gameplayer.o
[g++] src/gameprotocol.o
[g++] src/bnet.o
[g++] src/sha1.o
[g++] src/socket.o
[g++] src/auradb.o
[g++] src/aura.o
[g++] src/map.o
[g++] src/fileutil.o
[g++] src/game.o
[g++] src/stats.o
[g++] src/irc.o
[cc] src/sqlite3.o
src/sqlite3.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Makefile:75: recipe for target 'aura++' failed
make: *** [aura++] Error 1
root@vmi167482:/home/game/W3/aura-bot#

Can’t create a game!

Hello. I configured the bot and map, bot successfully join to the channel (ozbnet) but when I write !priv or !pub gamename and follow bot by name, I see game in list but when I press this there is no parameters. No map, no descripton, nothing...

Btw, ghost one host this map on this pvpgn server successfully

IRC: Won't join channel

Seems like the newest rev won't join irc_channel* on startup. Aura connects fine to battle.net and IRC, since I can whois my bot.

Hello, it's me again!

The problem is, I can't get my almost vanilla version (+gcbi patch) to compile on VS 2015( I've updated the boost toolset,too), while it perfectly compiles on 2013, it gives about 200 errors about redefinitions, from what I googled, it is a conflict with included almost everywhere ms_stdin.h/stdin.h, I've managed to go down to 14 errors, by commenting out some of those but can't deal with them completely, which makes me very sad.
Since you updated your own to 2015, I hope maybe you can help, or at least show the way where to dig for the solution, more so because it does not look connected to the boost libraries.

Reduce irc spam/information leak

The bot shows registered email addressed upon sign in:
[WHISPER: europe.battle.net] [# Email Service #] Note: Email on record is [[email protected]]
Which it shouldn't imo.
Then it also prints every dis/connect message like so:

[06 Dez 17 01:04] * OxBot: [BNET: asia.battle.net] disconnected from battle.net due to socket error
[06 Dez 17 01:08] * OxBot: [BNET: useast.battle.net] connected
[06 Dez 17 01:08] * OxBot: [BNET: useast.battle.net] disconnected from battle.net
[06 Dez 17 01:08] * OxBot: [BNET: asia.battle.net] connected
[06 Dez 17 01:08] * OxBot: [BNET: asia.battle.net] disconnected from battle.net

Which is not useful either. It should be completely removed imo, and just have a warning when someone hosts and the bot is not connected to all realms.

You remember yourself, that my bot was spamming channel 007 and you therefore banned him.

[unsupportd platforms] [msys2] can't build stormlib - bzip2 includes not found

When building stormlib:

$ cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_DYNAMIC_MODULE=1 ..
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
CMake Warning at /usr/share/cmake-3.6.2/Modules/Platform/MSYS.cmake:15 (message):
  CMake no longer defines WIN32 on MSYS!

  (1) If you are just trying to build this project, ignore this warning or
  quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
  the CMake cache.  If later configuration or build errors occur then this
  project may have been written under the assumption that MSYS is WIN32.  In
  that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.

  (2) If you are developing this project, add the line

    set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required

  at the top of your top-level CMakeLists.txt file or set the minimum
  required version of CMake to 2.8.4 or higher.  Then teach your project to
  build on Cygwin without WIN32.
Call Stack (most recent call first):
  /usr/share/cmake-3.6.2/Modules/CMakeSystemSpecificInformation.cmake:37 (include)
  CMakeLists.txt:1 (project)


-- Check for working C compiler: /usr/bin/cc.exe
-- Check for working C compiler: /usr/bin/cc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++.exe
-- Check for working CXX compiler: /usr/bin/c++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZLIB: /usr/lib/libz.dll.a (found version "1.2.11")
CMake Error at /usr/share/cmake-3.6.2/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.6.2/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.6.2/Modules/FindBZip2.cmake:54 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:281 (find_package)


-- Configuring incomplete, errors occurred!

But, bzip2 is installed:

$ pacman -Ss bzip2
mingw32/mingw-w64-i686-bzip2 1.0.6-6 [installed]
    A high-quality data compression program (mingw-w64)
mingw64/mingw-w64-x86_64-bzip2 1.0.6-6 [installed]
    A high-quality data compression program (mingw-w64)
msys/bzip2 1.0.6-2 (base compression) [installed]
    A high-quality data compression program
msys/perl 5.24.1-2 (base-devel) [installed]
    A highly capable, feature-rich programming language
msys/perl-Compress-Bzip2 2.22-1 (perl-modules)
    Interface to Bzip2 compression library

Expected behavior: cmake finds bzip2 on msys2.

Running bot locally for testing?

Hello! Ghost one automatically runs in local (lan), but this bot no. And I didn’t find a way to run this bot locally. It is possible?

can't host on pvpgn

I have configured both bnet server and eurobattle pvpgn. Then an admin created game from whispering in eurobattle. People can then join game from bnet but not from eurobattle. Have also tried only configuring eurobattle but same issue.

This is my config:

bnet2_server = server.eurobattle.net
bnet2_serveralias = EuroBattle
bnet2_cdkeyroc = FFFFFFFFFFFFFFFFFFFFFFFFFF
bnet2_cdkeytft = FFFFFFFFFFFFFFFFFFFFFFFFFF
bnet2_locale = system
bnet2_username = xxx
bnet2_password = xxx
bnet2_firstchannel = The Void
bnet2_rootadmins = xxx
bnet2_commandtrigger = !
bnet2_custom_war3version = 28
bnet2_custom_exeversion = 0 5 28 1
bnet2_custom_exeversionhash = 201 63 116 96
bnet2_custom_passwordhashtype = pvpgn
bnet2_custom_pvpgnrealmname = PvPGN Realm

Do you know what may be the issue?

Show error to user when map cannot be loaded

When you type
!map someName
and the bot tries to load the map but fails, it only shows an error on the console, but not to the user.
It is hard to tell whether there actually was an error since there is no reaction from the bot.

Also maybe add a hint that such an "invalid mapfile" error can be caused by missing permissions, or have actually 2 different errors, one for "unable to access" and one "invalid file".

Can't build on Mac

I can build the bot perfectly on Linux.

On the Mac, however I get the following error when using make:

src/crc32.cpp:73:43: error: no matching function for call to 'swap'
const uint32_t one = *current++ ^ swap(crc);

Not completely sure why it only fails on the Mac, but I guess it's due to swap function availability by the compiler.
Could apparently fix it by implementing the swap function:

/* Swap the bytes in a word_t.  This can be replaced by a byte-swap builtin, if
   available on the compiler.  E.g. __builtin_bswap64() on gcc and clang.  The
   speed of swap() is inconsequential however, being used at most twice per
   crc_wordwise() call.  It is only used on little-endian machines if the CRC
   is not reflected, or on big-endian machines if the CRC is reflected. */
static inline word_t swap(word_t x)
{
    word_t y;
    unsigned n = WORDCHARS - 1;

    y = x & 0xff;
    while (x >>= 8) {
        y <<= 8;
        y |= x & 0xff;
        n--;
    }
    return y << (n << 3);
}

Bug: Cant find game.dll although path is correct

Reason: They apparently renamed it to 'Game.dll' (=UPPER case)

Solution: Make your code ignore the case.

Current workaround: I can rename the dll, seems to still work.

P.S: Same thing for the extracted Blizzard.j -> blizzard.j

btw. I always have to put the blizzard.j etc. into the War3Patch.mpq manually, they arent there by default (anymore?)

Add Travis deployment for github releases

It would be nice if I wouldn't have to build the project myself every time and could instead just downlaod the latest build.
You could configure travis to deploy releases on github-releases.

Errors while compiling VS2017

Okay so i downloaded the VS2017, the bot, opened aura.sln, retargeted solution, chose x64, clicked build.

These are the errors I got. Any idea how to fix?

Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: 'string': No such file or directory (compiling source file bnetprotocol.cpp) aura c:\users\jan_a\downloads\aura-bot-master\src\bnetprotocol.h 30
Error C1083 Cannot open include file: 'cstdint': No such file or directory (compiling source file config.cpp) aura c:\users\jan_a\downloads\aura-bot-master\src\aura.h 24
Error C1083 Cannot open include file: 'cstdint': No such file or directory (compiling source file bncsutilinterface.cpp) aura c:\users\jan_a\downloads\aura-bot-master\src\bncsutilinterface.h 24
Error C1083 Cannot open include file: 'iostream': No such file or directory (compiling source file bnet.cpp) aura c:\users\jan_a\downloads\aura-bot-master\src\includes.h 26
Error C1083 Cannot open include file: 'cstdlib': No such file or directory (compiling source file crc32.cpp) aura c:\users\jan_a\downloads\aura-bot-master\src\crc32.h 4
Error C1083 Cannot open include file: 'cstdlib': No such file or directory aura C:\Users\jan_a\Downloads\aura-bot-master\src\csvparser.cpp 33
Error C1083 Cannot open include file: 'iostream': No such file or directory (compiling source file fileutil.cpp) aura c:\users\jan_a\downloads\aura-bot-master\src\includes.h 26
Error C1083 Cannot open include file: 'string': No such file or directory (compiling source file game.cpp) aura c:\users\jan_a\downloads\aura-bot-master\src\gameslot.h 24
Error C1083 Cannot open include file: 'utility': No such file or directory aura C:\Users\jan_a\Downloads\aura-bot-master\src\gameplayer.cpp 21
Error C1083 Cannot open include file: 'utility': No such file or directory aura C:\Users\jan_a\Downloads\aura-bot-master\src\gameprotocol.cpp 21
Error C1083 Cannot open include file: 'cstdint': No such file or directory (compiling source file gpsprotocol.cpp) aura c:\users\jan_a\downloads\aura-bot-master\src\aura.h 24
Error C1083 Cannot open include file: 'cstdint': No such file or directory (compiling source file gameslot.cpp) aura c:\users\jan_a\downloads\aura-bot-master\src\aura.h 24
Error C1083 Cannot open include file: 'cstdint': No such file or directory (compiling source file aura.cpp) aura c:\users\jan_a\downloads\aura-bot-master\src\aura.h 24
Error C1083 Cannot open include file: 'stdarg.h': No such file or directory (compiling source file auradb.cpp) aura c:\users\jan_a\downloads\aura-bot-master\src\sqlite3.h 35
Error C1083 Cannot open include file: 'vector': No such file or directory (compiling source file irc.cpp) aura c:\users\jan_a\downloads\aura-bot-master\src\irc.h 24
Error C1083 Cannot open include file: 'vector': No such file or directory (compiling source file map.cpp) aura c:\users\jan_a\downloads\aura-bot-master\src\map.h 90
Error C1083 Cannot open include file: 'cstring': No such file or directory aura C:\Users\jan_a\Downloads\aura-bot-master\src\socket.cpp 20
Error C1083 Cannot open include file: 'vcruntime.h': No such file or directory (compiling source file sha1.cpp) aura C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt\corecrt.h 10
Error C1083 Cannot open include file: 'iostream': No such file or directory (compiling source file stats.cpp) aura c:\users\jan_a\downloads\aura-bot-master\src\includes.h 26

Unlisted dependencies for Ubuntu

I had some problems getting aura++ to build on a fresh Ubuntu but I was able to fix them by installing lib32z1 & libbz2 as well as adding -lgmp to the LFLAGS.

sudo apt-get install lib32z1-dev
sudo apt-get install libbz2-dev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.