Page 5 of 7
Re: create-votes.py
Posted: Tue Oct 27, 2015 5:42 pm
by HMH
As Chairn and me already pointed out you need to tell the create-votes.py which votes to create. To achieve this you just pass the servertype to create-votes.py. For example: ./create-votes.py novice
This will just print all votes for the specified server which means you have to redirect the output to the file where you want the votes to be stored (like this for example:
https://github.com/ddnet/ddnet-scripts/ ... cal.sh#L10).
Re: create-votes.py
Posted: Wed Oct 28, 2015 8:37 am
by FlushA
tnx for help but now show this
after type python create-votes.py brutal
Traceback (most recent call last):
File "create-votes.py", line 147, in <module>
with open('data/maps/%s.map.cfg' % originalMapName, 'w') as cfg:
IOError: [Errno 13] Permission denied: 'data/maps/Sven.map.cfg'
Re: create-votes.py
Posted: Wed Oct 28, 2015 12:01 pm
by FlushA
my problem fixed
tnx from HMH and Chairn
maps and update votes
Posted: Fri Oct 30, 2015 10:34 am
by FlushA
Hello guys,
I need newest maps file for all type server and new race cfg file please get me this files,
and how update every 1h votes.cfg files.
please help me
---------------------------------
sorry for my bad English
Re: maps and update votes
Posted: Fri Oct 30, 2015 2:36 pm
by kamillentee
I guess you mean the votes file. You can generate them using this
http://forum.ddnet.org/viewtopic.php?f=68&t=2603.
To update the votes every hour you could use a cronjob. Just open the crontab by typing
crontab -e
and add the following line
@hourly /path/to/your/script
You should change the path to your needs. Further informations:
https://help.ubuntu.com/community/CronHowto
Re: maps and update votes
Posted: Fri Oct 30, 2015 4:03 pm
by FlushA
tnx kamillentee
but I have another problem,
I need newest updated maps file and race server cfg and race maps file
sql create table error
Posted: Fri Nov 06, 2015 10:42 am
by FlushA
Hello guys,
I installed mysql-server - mysql-client - apache2 - phpmyadmin
but when I run server DDNet with use sql show me this errors
[15-11-06 13:11:40][SQL]: SQL connection established
[15-11-06 13:11:40][SQL]: MySQL Error: Table 'teeworlds.record_race' doesn't exist
[15-11-06 13:11:40][SQL]: ERROR: Tables were NOT created
how fix this
---------------------------------
My VPS is
Linux ubuntu 15.04
Re: sql create table error
Posted: Fri Nov 06, 2015 11:19 am
by Ryozuki
you need mariadb-server
apt-get install mariadb-server
Re: sql create table error
Posted: Fri Nov 06, 2015 11:27 am
by kamillentee
what sql version he use should not matter, it seems more like the sql table is just missing
Re: sql create table error
Posted: Fri Nov 06, 2015 11:51 am
by Ryozuki
well i did it with mariadb and got no problems