Win7 64 Dark World V1.1 Server and client installation and operation success

Source: Internet
Author: User

Original address: http://bbs.gameres.com/thread_223717.html

Dick Silk One, no Mac, no Xcode.

Great concentration of the Saturday and Sunday two genius installation run successfully ...
Can only say that the installation is too complex,, the novice entry is not easy ...
Summarized as follows:

Win7 64-bit server installation and operation

1. Install python2.7 E:\software\other\python-2.7.5.amd64.msi
2. Install MySQL E:\software\DB\mysql-5.5.15-winx64.msi
3, install Easy_install D:\web\game\DiabloSrc\firefly-install\ez_setup.py
Note: The Win7 64-bit must be installed using ez_setup.py. The method is to execute the Python ez_setup.py under cmd after downloading ez_setup.py, i.e.
Setuptools can be installed automatically. There are currently no direct EXE installation versions.
After the download is complete, double-click the Execute installation file to install the Easy_install under D:\Program files\python2.7\scripts. Contains a
Easy_install.exe, then set the environment variable to the following settings in the system environment variable:
(That is, add D:\Program files\python2.7\scripts to the environment variable)
At this point, you can see if the Easy_install is installed on the console.

Microsoft Windows [version 6.1.7600]
Copyright (c) Microsoft Corporation. All rights reserved.

C:\users\zhuyupeng>easy_install
Error:no URLs, filenames, or requirements specified (see--HELP)

4, Twisted D:\web\game\DiabloSrc\firefly-install\Twisted-13.1.0.win-amd64-py2.7.exe
(under Windows can be installed directly with Twisted-12.2.0.win32-py2.6.exe, if it is python2.7 can use Twisted-12.2.0.win32-py2.7.exe)
5, Easy_install python-memcached
Easy_install dbutils
Easy_install Zope.interface
Easy_install Affinity

6, Mysql-python D:\web\game\DiabloSrc\firefly-install\MySQL-python-1.2.4.win-amd64-py2.7.exe
7, Pywin32-214.win32-py2.6.exe D:\web\game\DiabloSrc\firefly-install\pywin32-214.win32-py2.6.exe
Under Windows must be installed

http://starship.python.net/crew/mhammond/downloads/


8, download Memcached-win64.zip run start memcached service
A, in the console input command installation:
c:/memcached/memcached.exe-d Install
B, start:
c:/memcached/memcached.exe-d start
C, verification
You can now access the server: open-run-cmd-telnet 127.0.0.1 11211
The input command stats appears as follows and is successful
<ignore_js_op>

9, installation Firefly
Jump to the Firefly directory,
Python setup.py Build
Python setup.py Install
10. Start MySQL server, execute anheisj.sql script source D:\web\game\DiabloSrc\firefly-install\anheisj.sql
11, enter the diabloworld-server-v1.x directory, modify the Config.json memcached server geology and MySQL database host address;

"DB": {
"Host": "LocalHost",
"User": "Root",
"passwd": "Wxh123",
"Port": 3306,
"DB": "ANHEISG",
"CharSet": "UTF8"
},
"Memcached": {
"URLs": ["127.0.0.1:11211"],
"hostname": "ANHEISG"
}
12. Terminal running Python startmaster.py

13, modify the client's SocketManager.cpp file
_socket = new Socketclient ("192.168.1.103", 11009,1,1,null);
Where 192.168.1.103 is your IP address
11009 for the Netport in Config.json
{
"Master": {"Rootport": 9999, "WebPort": 9998},
"Servers": {
"Gate": {"Rootport": 10000, "name": "Gate", "db": True, "app": "App.gateserver", "Log": "App/logs/gate.log"},
"Dbfront": {"name": "Dbfront", "db": True, "mem": True, "app": "App.dbfrontserver", "Log": "App/logs/dbfront.log"},
"NET": {"Netport": 11009, "name": "Net", "RemotePort": [{"Rootport": 10000, "Rootname": "Gate"}], "app": "App.netserver", "Log": "App/logs/net.log"},
"Game1": {"RemotePort": [{"Rootport": 10000, "Rootname": "Gate"}],
"Name": "Game1", "db": True, "mem": True, "app": "App.gameserver", "Reload": "App.game.doreload", "Log": "app/logs/ Game1.log "},
"Game2": {"RemotePort": [{"Rootport": 10000, "Rootname": "Gate"}],
"Name": "Game2", "db": True, "mem": True, "app": "App.gameserver", "Reload": "App.game.doreload", "Log": "app/logs/ Game2.log "}
}




Second, Win7 64-bit client run
1. Enter Cygwin terminal, run
Cd/cygdrive/e/software/game/cocos2d-x-2.1.4/project/diabloworld-v1.1/proj.android
SH bulid_native.sh
Generate the corresponding libcocos2dcpp.so
2. Import eclipse into Eclipse. and then run.



Third, the problems encountered:
q:compile++ thumb:cocos2dcpp_shared <= MyXmlParser.cpp
Make: * * * There are no rules to create "OBJ/LOCAL/ARMEABI/OBJS/COCOS_EXTENSION_STATIC/ASSETSM ANAGER/ASSETSMANAGER.O" required targets "/Users/j Ie/documents/cocos2d-x-2.1.4/projects/tsdemo/proj.android/. /.. /.. /extensions/assetsmanager/assetsmanager.cpp ". Stop it.
Make: Leave the directory "/cygdrive/e/software/game/cocos2d-x-2.1.4/project/diabloworld-cli ent-v1.3/proj.android"

A: If you see a
No rule to make (no rules can be created) the word, then the Libs and obj folder deleted, and then compile again, OK!



Q:activity cannot is resolved to a type
A: Copy the Cocos2d-x-2.1.4\samples\cpp\hellocpp\proj.android\src\org\cocos2dx\lib file into the
and add Andorid 2.2 to libraries.


Q: Unable to join server: always return null
A: The local service port is not occupied under test
Netstat-ano|findstr "11009" if any, it indicates that the service is turned on normally

Q:sh bulid_native.sh operation is relatively slow
Since the following shell command in bulid_native.sh will copy the picture to the assets directory every time, there is no need to comment out, save time
# Make sure assets is exist
#if [-d ' $APP _android_root "/assets]; Then
# RM-RF "$APP _android_root"/assets
#fi
#
#mkdir "$APP _android_root"/assets
#
# Copy Resources
#for file in "$APP _root"/resources/*
#do
#if [-D "$file"]; Then
# CP-RF "$file" "$APP _android_root"/assets
#fi
#
#if [-F "$file"]; Then
# cp "$file" "$APP _android_root"/assets
#fi
#done

Q:
2013-08-26 22:58:11+0800 [bilateralbroker,2,127.0.0.1] Peer'll receive Followi
ng PB Traceback:
2013-08-26 22:58:11+0800 [bilateralbroker,2,127.0.0.1] Unhandled Error
Traceback from remote host--Traceback unavailable
Exceptions. Valueerror:invalid literal for int. () with base: ' None '

2013-08-26 22:58:11+0800 [Broker,client] "[Failure Instance:traceback from Remo
Te Host--Traceback unavailable\nexceptions. valueerror:invalid literal for int
() with base: ' None ' \ n] "

A: Generally restart the memcache server.
I was building a computer on the Memeache arch. Ok

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.