Vagrant Is Back and needs testing.

Content and general development discussion, including quest scripts and server code. TMW Classic is a project comprising the Legacy tmwAthena server & the designated improved engine server based on evolHercules.


Forum rules

This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.

Its current use is for the continued development of the server and game it has always served: TMW Classic.

Post Reply
User avatar
wushin
TMW Adviser
TMW Adviser
Posts: 1759
Joined: 18 Dec 2012, 05:56
Location: RiverBest, Brew City, Merica
Contact:

Vagrant Is Back and needs testing.

Post by wushin »

https://github.com/wushin/tmwa-vagrant

Easier to use TMW development environment originally pioneered by Melkior has been picked up and brought back to life.
It's still testing but it uses a custom image. So we have more control over what libraries go on it.

Enjoy.
Wushin
The secret to getting all the important stuff done is doing nothing.
User avatar
Cassy
TMW Adviser
TMW Adviser
Posts: 791
Joined: 09 Mar 2013, 09:39
Location: ♥ Fluffyland ♥
Contact:

Re: Vagrant Is Back and needs testing.

Post by Cassy »

Thanks again wushi :D

I will so test it when I'm back home.
I was so happy when Melkior created this and am really hoping it works again.

This is absolutely awesome for everyone interested in developing but using Windows.
Another step to make development easier.
Main characters:
Lv.94 - Cassy - speedarcher on dark path, bunny-wannabe, would like to ride on a Mouboo once...
Lv.95 - Biqcassy - mage on light path, addicted to her Fluffy Hat, love-hates Fallens, really misses Confused Tree...
Lv.70 - Simca. - dreams of becoming a speedarcher on light path, still has a lot to learn...

Personal development overview | priorities | wiki to-do | wiki profile incl. other characters

[20:24:59] <Cassy> debug npc in crypts!
[20:25:02] <Cassy> just a joke...
[20:25:08] <wushin> DONT DO THAT
[20:25:10] <o11c> !slap Cassy
User avatar
wushin
TMW Adviser
TMW Adviser
Posts: 1759
Joined: 18 Dec 2012, 05:56
Location: RiverBest, Brew City, Merica
Contact:

Re: Vagrant Is Back and needs testing.

Post by wushin »

If it fails to build:

Code: Select all

vagrant box list
If that returns:

Code: Select all

precise32 (virtualbox)
run:

Code: Select all

vagrant box remove precise32
then:

Code: Select all

vagrant up
The secret to getting all the important stuff done is doing nothing.
User avatar
wushin
TMW Adviser
TMW Adviser
Posts: 1759
Joined: 18 Dec 2012, 05:56
Location: RiverBest, Brew City, Merica
Contact:

Re: Vagrant Is Back and needs testing.

Post by wushin »

New Image Release.
Script now checks image for updates
Image is now hosted in the vagrant cloud
Updated README
https://github.com/wushin/tmwa-vagrant
The secret to getting all the important stuff done is doing nothing.
User avatar
v0id
Novice
Novice
Posts: 196
Joined: 15 Sep 2009, 21:31
Location: Désolé, je ne loue pas.

Re: Vagrant Is Back and needs testing.

Post by v0id »

Code: Select all

[~/dev/tmw/tmwa-vagrant] » git rev-parse HEAD                                                                                         20:32:26  ☁  master ☀
cb667476fe2067bd5dbb770645408ea33aea59b0
[~/dev/tmw/tmwa-vagrant] » vagrant up                                                                                                   20:32:27  ☁  master ☀
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'wushin/tmw-vagrant' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'wushin/tmw-vagrant'
    default: URL: https://vagrantcloud.com/wushin/tmw-vagrant
==> default: Adding box 'wushin/tmw-vagrant' (v0.1.3) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/wushin/tmw-vagrant/version/1/provider/virtualbox.box
==> default: Successfully added box 'wushin/tmw-vagrant' (v0.1.3) for 'virtualbox'!
==> default: Importing base box 'wushin/tmw-vagrant'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'wushin/tmw-vagrant' is up to date...
==> default: Setting the name of the VM: tmwa-vagrant_default_1398365373523_82562
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 6122 => 6122 (adapter 1)
    default: 5122 => 5122 (adapter 1)
    default: 6901 => 6901 (adapter 1)
    default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Mounting shared folders...
    default: /vagrant => /home/vincent/dev/tmw/tmwa-vagrant
==> default: Running provisioner: shell...
    default: Running: /tmp/vagrant-shell20140424-6387-avi014
stdin: is not a tty
Updating the Virtual Machine
(It can take some time)...
Setting up folder sharing for content...
Cloning themanaworld/tmwa...
Building tmwa (please be patient, this can take some time)...
Cloning themanaworld/tmwa-server-data...
Setting up update hooks...
Creating the configuration files...
GM account can't be found, creating...
Impossible to have a connection with the login-server [127.0.0.1:6901] !
Impossible to have a connection with the login-server [127.0.0.1:6901] !
Starting the server...
Character server IP address : 127.0.0.1 -> 127.0.0.1
Map server IP address : 127.0.0.1 -> 127.0.0.1
read db/item_db.txt done (count=879)
Exp for mob 'Maggot' generated: 6
[...]
Exp for mob 'PsiBrain' generated: 7255
read db/mob_db.txt done
read db/mob_skill_db.txt done
read db/skill_db.txt done
Maps Loaded: 130                                                              
Loading NPCs [9130]: npc/annuals/xmas/tree_beard.txt                        
##############################################################################
#                                                                            #
#   Server is now running.                                                   #
#   You can reach it by adding a new server to your client.                  #
#                                                                            #
#   Name: Local Server                                                       #
#   Address: localhost                                                       #
#   Port: 6901                                                               #
#   Server type: TmwAthena                                                   #
#                                                                            #
#   A GM level 99 account has been created with the following credentials.   #
#                                                                            #
#   Username: admin                                                          #
#   Password: vagrant                                                        #
#   Have fun!                                                                #
#                                                                            #
##############################################################################
All good here.
Only a warning:

Code: Select all

stdin: is not a tty
User avatar
wushin
TMW Adviser
TMW Adviser
Posts: 1759
Joined: 18 Dec 2012, 05:56
Location: RiverBest, Brew City, Merica
Contact:

Re: Vagrant Is Back and needs testing.

Post by wushin »

https://github.com/wushin/tmwa-vagrant/tree/stable

Made some improvements:
The VMimage should be versioning now. The latest is 0.1.4.
tmwa-init is a tool to help build and update the sources
All these commands can be wrapped in vagrant ssh -c "command"
  • /etc/init.d/tmwa-init {start|stop|restart|build|update|update_server|update_data|admin_reset|install|status}
  • start|stop|restart|status All deal with the servers tmwa-{char|login|map}
  • build will build what ever you have checked out in tmwa
  • update will update both TMWA and TMWA-data to current master repos
  • update_server updates TMWA to current master repo
  • update_data updates TMWA-data to current master repo
  • admin_reset will reset the admin password to vagrant
  • install will update and reinstall everything
The secret to getting all the important stuff done is doing nothing.
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

Re: Vagrant Is Back and needs testing.

Post by o11c »

It looks like the servers are being run as root inside the VM ... this is going to be a hard failure at some point in the future.
Former programmer for the TMWA server.
User avatar
wushin
TMW Adviser
TMW Adviser
Posts: 1759
Joined: 18 Dec 2012, 05:56
Location: RiverBest, Brew City, Merica
Contact:

Re: Vagrant Is Back and needs testing.

Post by wushin »

Totally makes sense. Patched.
Runs as vagrant & does make clean-deps
The secret to getting all the important stuff done is doing nothing.
User avatar
wushin
TMW Adviser
TMW Adviser
Posts: 1759
Joined: 18 Dec 2012, 05:56
Location: RiverBest, Brew City, Merica
Contact:

Re: Vagrant Is Back and needs testing.

Post by wushin »

On that note as well:
Should build a dev environment on a linux server if they have sudo and perms to /home/tmwa

https://github.com/wushin/tmwa-vagrant/ ... /tmwa-init

So minus the VM that should currently work on Deb Wheezy variants. I've included yum but don't know if Redhat has/needs changes.
The secret to getting all the important stuff done is doing nothing.
User avatar
wushin
TMW Adviser
TMW Adviser
Posts: 1759
Joined: 18 Dec 2012, 05:56
Location: RiverBest, Brew City, Merica
Contact:

Re: Vagrant Is Back and needs testing.

Post by wushin »

Windows 8 and 1.4.3 vagrant
* Download and install 1.4.3 http://www.vagrantup.com/download-archive/v1.4.3.html

Windows 8: 1.5.0 broken

Installing on windows may give an error if non-ASCII char sets are in the directory name

https://github.com/mitchellh/vagrant/issues/2113
The secret to getting all the important stuff done is doing nothing.
User avatar
wushin
TMW Adviser
TMW Adviser
Posts: 1759
Joined: 18 Dec 2012, 05:56
Location: RiverBest, Brew City, Merica
Contact:

Re: Vagrant Is Back and needs testing.

Post by wushin »

You might have to download the box image yourself via the
URL found here:
http://54.186.154.168/tmw-vagrant.box

then in vagrant do

Code: Select all

vagrant box add --force wushin/tmw-vagrant PathToBoxFile
make sure the Path does not contain special characters.
The secret to getting all the important stuff done is doing nothing.
Post Reply