Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Crash3r

Pages: [1] 2
1
Mods & Development / Re: War2 over Linux
« on: September 21, 2016, 01:23:06 PM »
I've been playing alot of Warcraft since my last post and its working great.

Only problems, as you know, is black screens in chat and stuff but fully functional and perfect in game.

Only glitch I have found since last post is losing keyboard focus after 1st game (only happens sometimes I think), but I can fix it by quickly switching workspaces and then switching back (SUPER + right arrow, SUPER + left arrow)

So because I have that quick workaround, I havent even spent anytime trying to fix it yet but maybe Ill get around to it.

I really want to get War2Video working or an alternative, but havent spent any time yet. Ill let you know what I find.
Also on my todo list is the Map Editor, if I can get those 2 to work thatd be awesome

By the way, I didnt use the PlayOnLinux War2 installer, I set it up custom settings. You should checkout PlayOnLinux because i think of it like a virtual machine manager for Wine installs. It allows you to run multiple versions of Wine and assign them to different programs easily. Also you can use it to manage the wine instances which each have their own 'drives', + their own libraries installed

2
Mods & Development / Re: War2 over Linux
« on: September 09, 2016, 05:23:36 PM »
Also, I started having some display again issues after closing War2, only with 2 applications -- tint2, and albert. They wouldnt restore back to the 1920x1080 resolution.

So I wrote a quick bash script to launch warcraft 2, then check every 1s to see if it is still running. When it closes, the script will restart those two programs which fixes their display issues

Code: [Select]
#!/bin/bash
/usr/share/playonlinux/playonlinux --run "Activated War2Combat" %F
pid=`ps -elf | grep 'warcraft ii bne.exe' | grep -v grep | awk '{print $4}'`
echo $pid
while ps -p $pid >/dev/null
do
    echo "."
    sleep 1
done
killall tint2
killall albert
tint2 &
albert &

3
Mods & Development / Re: War2 over Linux
« on: September 09, 2016, 05:17:06 PM »
I also got Stealthbot installed on Linux/Ubuntu with Wine-1.9.18 + PlayOnLinux if anyone is interested just PM me. Maybe I will post instructions later, but I it was long process of trial and error and required some manual DLL loading

Basically -
Download Stealthbot 2.6r3 (2.7 doesnt work on WINE): http://www.elitegrounds.net/scBots.html
PlayOnLinux Config:
Install vb6run
install msxml6
Install Microsoft Core Fonts
use wine-1.9.18

Go here: http://www.stealthbot.net/forum/index.php?/topic/189-needed-files/

Download SSubTmr6.dll, BNCSutil.dll, and MSSCRIPT.OCX

Place BNCSutil.dll in program files/stealthbot dir
Place MSSCRIPT.OCX in System32 dir of PlayOnLinux stealthbot drive
Use PlayOnLinux to open a windows cmd prompt, and run regsvr32 SSubTmr6.dll to load that

Download Warcraft II: Battle.net Edition hash files from here: http://www.stealthbot.net/board/index.php?showtopic=34851

Place that W2BN dir in program files/stealthbot

Launch Stealthbot
Settings > Bot Settings >

Configuration > Enter your username, password, server (server.war2.ru), cdkey doesnt matter but is required so enter '123123123123', Home: WAR2BNE, Product: Warcraft II BNE

Advanced > Connection Method: ADVANCED - Local hashing

Hit 'Apply and Close'

Now Connect

Optional:
Create desktop icon (look at other shortcuts for config example) -- /usr/share/applications/stealthbot.desktop
Desktop Icon Pic: http://www.deviantart.com/art/Stealthbot-dock-icon-114102201 (must resize to 32x32)

4
Mods & Development / Re: War2 over Linux
« on: September 06, 2016, 04:01:47 PM »
Ok scratch all the startup/shutdown/war2.sh scripts

I finally got it working on PlayOnLinux, no extra commands necessary. And when launched it is full screen, when closed I am automatically restored to my native resolution with no broken applications still stuck in 640x400!

War2 is working 100% in game (better graphics than my Windows 7 PC, and audio is perfect too), just the minor annoyance of Battle.net graphics missing as discussed above (everything works -- chat, channels, commands, create game, but its black background in lobby until inside a game lobby)
Code: [Select]

 PlayOnLinux Install Instructions:

1. Download War2 from en.war2.ru
2. Get wine (sudo apt-get install wine)
3. Get PlayOnLinux (sudo apt-get install playonlinux)
4. Open PlayOnLinux
# You need to have Wine version 1.9.9 installed, to install it/check if installed, open PlayOnLinux and click Tools > Manage Wine Versions
5. Click 'Install a Program'
6. Click 'Install a non listed Program' (bottom left)

# Important:
7. During install, Click 'Use Another Version of Wine' and select version 1.9.9 (you might have to install this beforehand)

8. Next, next, next (create virtual drive and name it War2Drive, select 32bit install)
9. Browse for War2Combat-4.exe from Downloads, Install Warcraft2. During install I chose not to 'create desktop icon' just to keep wine desktop uncluttered

# Important:
10. For the shortcut, select 'War2Launcher.bat', and name it 'Warcraft II'

11. It will create the shortcut and then another shortcut creation screen will popup. Click cancel on that one

# At this point, the install is fully working

12. Change default icon to war2 icon -- Right click on the shortcut and select 'Set the icon'
13. Open the 'hicolor' folder > 32x32 > apps > 8742_Warcraft II BNE.0.png
Let me know if this works for you guys, I like it alot better than having to run the start and stop scripts, and its much more newb friendly for other players on Linux (Although probably not too many newbs use Linux, but its still easier anyway)

5
Mods & Development / Re: War2 over Linux
« on: September 06, 2016, 12:18:27 PM »
I have a workaround for my problem with the applications not adjusting back to 1920x1080 after playing War2, I wrote a script to restart the applications that have display issues, I call it 'unwar2.sh'

If anyone has the same problem, this script probably wont fix the your application display issues  (unless you only use the exact same applications as me), but use this as a guide to create your own script, just set the resolution back to your resolution, then kill the processes that have display issues and restart them

Code: [Select]
#!/bin/sh
xrandr -s 1920x1080
#Lets find and enable the touchpad:
ID=$(xinput list | sed -n 's/.*touchpad[[:blank:]]*id=\([0-9]\+\)[[:blank:]]*.*/\1/Ip')
xinput set-prop $ID "Device Enabled" 1
killall plank
killall conky
killall albert
cd "/home/$USERNAME$/.conky/Gotham"
conky -c "/home/$USERNAME$/.conky/Gotham/Gotham" &
cd "/home/$USERNAME$/.conky/Green Apple Desktop"
conky -c "/home/$USERNAME$/.conky/Green Apple Desktop/conky_seamod" &
albert &

6
Mods & Development / Re: War2 over Linux
« on: September 06, 2016, 11:30:04 AM »
I'm also using Linux as my daily OS -- ElementaryOS (based on Ubuntu, but with Pantheon DE)

I have played War2 in Virtualbox (use scaled mode to get a stretched display that was almost fullscreen), and its playable, but the slight mouse lag really makes it only fun for a casual game.

I was looking for something more native, so I've also figured out how to run it on Wine, although a bit differently than Ingognito:

- Install wine (sudo apt-get install wine)
- Download War2 from en.war2.ru
- Run the EXE file and complete the installer
# If you stop here and try to play it, only non battle.net functions will work, and it will run in a small window instead of full screen
- Use Ingognito's war2.sh script to launch War2Combat (save it as war2.sh in Documents or whatever, dont forget to do 'chmod +x war2.sh' then launch by typing './war2.sh'

# If you use the shell script to launch War2, it will launch full screen and look good, but for me it crashes 7/10 times when connecting to battle.net. About 3/10 times it allows you to log in and then sometimes it will work fine, but other times it will crash if you try to look at a profile or join a game

To fix random crashing, I enabled Comparability Mode on all War2 EXE files for Windows XP:
- Open 'Configure Wine'
- Click Applications
- Click 'Add Application' button
- Add 'War2noCDloader.exe' and select 'Windows Version: Windows XP'
- Repeat for War2PLoader.exe, War2Patcher.exe, and Warcraft II BNE.exe

Now launch War2 with Ingognito's war2.sh

The game plays even better than on my Windows 7 PC, the only thing that is an issue is that Battle.net graphics dont display, but it is fully functional other than that - you can still chat and even view profiles, edit your profile, change channels, and create games. Creating games is a bit tricky without graphics (there is no checkbox displayed for Fixed order) so you have to click around blind and guess a bit but it works

The only major problem I have is that I cant get 'xinit -- :1' to work before launching war2.sh. It opens a fullscreen terminal (so it kills X), but then I cant interact with it at all

This must be an Elementary OS/Pantheon issue so I will ask them about it...

So what I do for now is just run the war2.sh without xinit -- :1, what happens is it uses my current desktop and resizes it to 640x480, and everything works fine until I'm done playing, but then the display is messed up.

So I fix the display with 'xrandr -s 1920x1080' but then all my applications are still messed up so I have to restart all of them (Albert, Conky, Plank)

I usually just end up rebooting, which kind of kills the point of the whole thing (might as well dualboot), but hopefully I can find a way around the display issues after the game ends

7
Also people are creatures of habit. You might kick my ass at 45men the first and second time, but the 3rd time you go and try to do the exact same thing and I've got you.

You can learn people's MO, and then use it against them. Take Smeagol for example, one of his classic 45 men strategies: rush hard at start with a ton of units, push past your outter defenses then fireball the shit out of all your good units back in the corner because you havent had time to spread anything out yet.

Well this one gets me all the time, but alot of times I predict hes going to do this. I counter rush hard against his rush, then with that distraction in auto-pilot (patrol rush), i micro an attack around the side and take out his mage from behind which is coming down to get my units below.

These type of pball maps are not simple and mindless as people seem to think for some reason. I dont know what people like blid think pball is - that we just grab all our units and rush at each other and then theres a 50/50 change of whos going to win?? lol not at all

its alot about reading peoples patterns, predicting opponents next moves, thinking 10 steps ahead, reacting quickly, distractions and traps.

Just as I gave the example of using smeagol's strategy against him, people use my strategies against me too. You have to keep changing your strategies because if your opponent is smart he will memorize them and use them against you when he sees you setting up for one

8
Dodgeball was always my favorite sport in middle school, so its rather fitting.

Really tho, like smeagol said there is a dodgeball map and pball is not dodgeball. Theres the mage dodgeball, its okay, but its mainly just funny, and can be intense because it kind of has a russian roulette element to it - running around in darkness not knowing when you could get popped by a stray fireball

its funny, but not alot of skill, theres some, but alot of luck too

Smeagol's 45 men however is my favorite pball map. It is deffinitely best compared to Chess, even though smeagol argues chess is a different game and theres even a pball map for that.

But really 45 men = chess. You have a group of units with different capabilities and its all about how you are going to use those capabilities to your advantage and to the disadvantage of your opponent.

Alot of pball, like chess, is literally mind games. when a group of units is rushing toward you in 45 men, should you bring your mage up and fireball them? Or is that group of units coming toward you merely a distraction to make you bring your mage up so that another group of units can attack you from the side and kill the mage?

Its not just 'micro this' 'micro that' there is alot of macro games at play - setting up traps for your opponent to walk into, predicting his next move etc

9
Mods & Development / Re: GameBot source code
« on: September 19, 2015, 10:34:12 AM »
Cool man, good luck with that. Just add to the list of 'projects' tupac has been working on since '95.

Meanwhile Lance comes back to war2 for a few days, releases a hostbot that is practical, functional, and scalable to any map/game type, and begins hosting the first (or second after IL's) ever GoW Bot.

Then Crash3r, a Network Engineer who knows almost nothing about programming and makes no claims to, modifies Lance's code to add working Team Selections, Fixed Order, and several custom map selections, then releases the first ever PBALL and Chop Bots.


Tupac: Hey guys im working on altering the mem values so we can all control critters who fly and drop fireballs

Crash3r: Who gives a shit? I just made the first ever PBALL and Chop bots.

Tupac: Thats easy, I've been working on THE REAL WAY of doing that for years.

Crash3r: Cool story bro

10
Mods & Development / Re: GameBot source code
« on: September 18, 2015, 11:28:44 PM »
lmao hear that Lance? Tupac made hostbot before you!!! Tupac thinks hes a programmer lmao

I didnt steal Lance's work, I credit him in my bot profiles (/finger PBALL_HostBot ...)

If you have ever written in a programming language (doubtful), you are using someone else's work. A real programmer would know that. But congratualtions on making a hostobt before lance! Oh do please post the source code so we can all laugh at your stupid wannabe ass

Only a newb thinks revinventing the wheel for each of his programs is some kind of accomplishment

11
Mods & Development / Re: GameBot source code
« on: September 18, 2015, 08:37:28 PM »
ok cool maybe i will add that to mine too later if it becomes a problem...


PBALL AND CHOP BOTS ARE WORKING!!!!

I put them on a VPN with ports forwarded and have tested several games now with zero lag, and works perfect



Stoked.


Still dont know why i couldnt get it working with me playing on the same network as bot but whatever it works now


Thanks Lance

12
Mods & Development / Re: GameBot source code
« on: September 18, 2015, 07:55:47 PM »
Lance,

I can't get it to work... I have each bot on a different registry port. Each port is forwarded to each bot.

My client is also on a sep port, and port forwarded...

Still everytime a game starts players get dropped once the bot quits the game (10seconds after start)

Worst game lag I've ever seen for those 10 seconds of play time.



I noticed how your bot is getting "losses" while mine only gets draws


Did u program it to stay for 2minutes instead of 10 seconds?


13
Mods & Development / Re: GameBot source code
« on: September 18, 2015, 05:18:31 PM »
Chop bot is up - "CHOP_HostBot"


Whisper one of these game codes to CHOP_HostBot to create a game:

chop1v1
chop2v2
chop3v3


Pball bot is up and working but the maps are not properly lined up but still playable.
Smeagol is making some revisions and those should be done this weekend. In the mean time, you can still test things out

Whisper one of these game codes to PBALL_HostBot to create a game:

601v1
602v2
603v3

451v1
452v2
453v3

Can someone make us some BOT icons... would be cool heres my current bot names

chop_hostbot
chop_gamebot
pball_hostbot
pball_gamebot

14
Mods & Development / Re: GameBot source code
« on: September 18, 2015, 04:20:04 PM »
First successful PBALL Bot game!

I connected to VPN then to War2, then started a bot game and played with cpt cook again

This time when pball bot quit, we both stayed!

Game was laggy as hell but I think its because of the VPN

but the bot works

15
Mods & Development / Re: GameBot source code
« on: September 18, 2015, 04:07:35 PM »
Ok I just tried another time :


PBALL_GameBot created game,
I joined
CptCook joined

I whispered start to hostbot

Game started.

10seconds of laggy game play

I switch screens to look at GameBot

GameBot quits for a draw

Cpt Cook and I drop from the game.


I think this must be related to me playing and gamebot hosting from same network

Going to try to get some kind of VPN up and try again

Pages: [1] 2