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 - TheRealUMaster

Pages: [1] 2 3
1
Paintball 2 Discussion / Re: Is this game open REALLY open-source?
« on: November 06, 2016, 12:52:07 AM »
Thanks

2
Paintball 2 Discussion / Is this game open REALLY open-source?
« on: November 05, 2016, 11:42:54 AM »
The installer states that the game is licensed under GPLv2. GPLv2 requires all executables to have an openly available source-code attached to it. Well, this raises a question regarding gamex86.dll. There is no source code for it. Also, the license displayed when running the installer, doesn't mention the gamex86.dll .
So can we have a sourcecode of it?
Or urgently modify the license.


Thanks.

(Also, are the default (and hr4) textures open-source? (or at least free-to-use?) And what about ctp1 and so?)

3
Bugs, Feature Requests, and Feedback / Re: mapinfo file dont work
« on: November 05, 2016, 03:08:27 AM »
I can confirm too. Some features related to mapinfo are broken. Can someone please move this to the Issues/bugs section? Thank you.

4
General Development / Re: License of scripts and other works
« on: October 12, 2016, 08:51:30 AM »
What? Every DP script/mod I ever released is on GPL
Okay, glad we cleared this up, topic closed.

5
General Development / Re: License of scripts and other works
« on: October 11, 2016, 11:50:08 AM »
QUICK EDIT: sorry I generalised. I'll remove your name from the list. I meant: "Some server admins/hosters..."

6
General Development / License of scripts and other works
« on: October 11, 2016, 10:13:17 AM »
Hello!

Recently, some server admins/hosters asked me (and hate_you_guys) if they could use some scripts which were (partially) made by me. So here are some things to discuss.

GENERALLY SPEAKING:

First of all, scripts, source codes, (from now on referred to as "WORK") etc which don't include any license,  sign or referral to a license should be threated as if they would be licensed under GPL 2(https://www.gnu.org/licenses/gpl-2.0.html). This means, that you will be allowed to distribute, and modify the WORK. BUT you MUST mention the original author of the WORK (in form of a comment, or else way, but it should be clearly noticeable and readable). If the author decides not to allow some things (let's say the modifying), he MUST state his will in an easy-to-understand way.

If somebody actually mentions the rights you have (regarding the WORK), you must of course act in a way that you don't break any rule.

Case A:
If the statement about your rights is in the following form:

Copyright 2016 RandomGuy710
YOU ARE NOT ALLOWED TO: MODIFY, REDISTRIBUTE WITHOUT MY APPROVAL, ETC

=> then you are allowed to do ANYTHING except of the things mentioned there.

Case B:
If the statement about your rights is in the following form:
Copyright 2016 RandomGuy712
YOU ARE ALLOWED TO: MODIFY, REDISTRIBUTE, MONETIZE, ETC

=> then you are allowed to do THE THINGS WRITTEN DOWN IN THE STATEMENT.

EXCEPTIONS FOR CASE B (only in case of the source code being publicly available):

1. You are allowed to read it.
2. You are allowed to redistribute the code (WITHOUT modifications, and by mentioning the ORIGINAL author)
3. You are allowed to modify it BUT only if YOU use it LOCALLY (on your local PC).

So this would be a basic guideline not only for the user but also for the author.


IN MY CASE


Yes you are allowed to have the code, redistribute it, and modify it.
BUT this goes by noting that the original author of SOME scripts is hTml and he has the final say in this matter. Contact him.

Cheers,

UMaster

7
Paintball 2 Discussion / Re: This game is dying... What can we do to help?
« on: September 13, 2016, 09:11:14 AM »
http://dplogin.com/forums/index.php?topic=22702.0 make sure you don't only read the first post.

8
Server Discussion / Re: Python script help needed.
« on: August 31, 2016, 01:09:23 PM »
Oh my bad, replace Server with pypb2lib.Server and it will work.
(I wrote that script without running python :P )
I've just tested it on my VPS so i can confirm that it works.
You tested my code?
If not, can you send me the code you tested?
Also have you tested that it does the commands in paintball that you specified? Or just if the script doesnt return any errors?) see this:
Now I don't have any syntax errors now, but apart from lagging my running pb2 server crazy (script launched --> instant lag, later timeout ingame), the script does NOTHING.

9
Server Discussion / Re: Python script help needed.
« on: August 31, 2016, 11:56:35 AM »
The rcon commad is "map". newmap works only ingame :)
Thanks for the help, I'll try to contact hTml personally.
Also, sorry that I dont have enough time to mention them all, but you still have errors in your script.

10
Server Discussion / Re: Python script help needed.
« on: August 31, 2016, 09:01:02 AM »
UMaster, you should google "Python indentation". Python uses it instead of brackets.

if data["mapname"] == "airtimeoi":
s.rcon("sv_consolename 4")

Should be:

if data["mapname"] == "airtimeoi":
    s.rcon("sv_consolename 4")

^--- 4 spaces


I would probably do it like this. I'm not sure if it works, but you should get the idea.

Code: [Select]
code ...
Thank you, rockitude. Now I don't have any syntax errors now, but apart from lagging my running pb2 server crazy, the script does NOTHING.
Is a time.sleep(x) crucial? And will my script work?
As for your code, I understand what you have written there, but there are/would be 2 problems with your code.
1st: I dont need any command to be executed apart from what I have specified in a block/array.
2nd: I assume your script wouldn't work if I would tell it to execute 2 different (for example say "TEST" and sv_consolename 3) commands (probably because of your 'for' statement).

I feel that I need to apologise again for wasting your time on this script, but I have almost 0 python knowledge.
Here is the lastest, currently non-working version of my script:
Code: [Select]
import pypb2lib
from pypb2lib import Server
while True:
s = Server(', '109.235.71.123', 11111)
data = s.Status()
if data["mapname"] == "airtimeoi":
   s.rcon("sv_consolename 4")
   s.rcon("say TEST")
elif data["mapname"] == "airtime2":
   s.rcon("sv_consolename 3")
   s.rcon("say TEST")
elif data["mapname"] == "airtime3":
   s.rcon("sv_consolename 1")
   s.rcon("say TEST")

11
Yes, that would definetely help avereage server admins.

12
Server Discussion / Re: Python script help needed.
« on: August 31, 2016, 08:06:05 AM »
Yes it does.
The expert command applies expert mode to the next map so it won't work the way you expect it to work i think.
So I would use this solution instead:
Code: [Select]
import pypb2lib

def mapchange(data):
    # data['map'] == name of the loaded map
    s.rcon('expert 8') # Set expert mode for the next map
    s.rcon('map ' + data['map']) # Reload the map

if __name__ == '__main__':
    s = Server(rcon_password='rcon_password', hostname='ip', port=27910,   logfile='path_to_servers_logfile.log')
    s.Bind(pypb2lib.EVT_MAPCHANGE, mapchange)
WARNING - THIS METHOD REQUIRES ACCESS TO THE LOGFILE
Ah thanks. expert 8 was just an example :)
I just wanted to check if my syntax is correct :D
So i just need to add those import lines to my (above-mentioned) script and it should work.. thx :)

EDIT: i doesnt work

My Script:
Code: [Select]
import pypb2lib
from pypb2lib import Server
while True:
s = Server('rcon', '109.235.71.123', 11111)
data = s.Status()
if data["mapname"] == "airtimeoi":
s.rcon("sv_consolename 4")
s.rcon("say TEST")
elif data["mapname"] == "airtime2":
s.rcon("sv_consolename 3")
s.rcon("say TEST")
elif data["mapname"] == "airtime3":
s.rcon("sv_consolename 1")
s.rcon("say TEST")

Command line:

Code: [Select]
umaster@23246:/paintball/umaster/pball/scripts$ python cvar_cpublic.py
  File "cvar_cpublic.py", line 7
    s.rcon("sv_consolename 4")
    ^
IndentationError: expected an indented block

13
Server Discussion / Re: Python script help needed.
« on: August 31, 2016, 05:28:04 AM »
Thank you very much. I appreciate your help :)

How do I tell the server to look up map name every x seconds?
Does the following script (wich I made based on your answers) CONSTANTLY and Repeatedly look at the server to see if airtimeoi, or airtime2 or airtime3 is the current map and triggerning ONLY the command for that specific map?

while True:
           s = Server('rcon', '109.235.71.123', 30000)
           data = s.Status()
           if data["mapname"] == "airtimeoi":
               s.rcon("expert 8")
           elif data["mapname"] == "airtime2":
               s.rcon("expert 1")
           elif data["mapname"] == "airtime3":
               s.rcon("expert 4")


14
Server Discussion / Re: Python script help needed.
« on: August 31, 2016, 02:24:32 AM »
I don't check the forums very often nowadays, I do it once a month or something like this. The 'Python' word in the topic has captured my attention though.
You can use pypb2lib for this thing I think - https://github.com/mRokita/pypb2lib
Ah, hTml, thank you very much :)

also, how can I use this in a "if" condition? (sorry for this stupid question but I am very new to python)

if(data['mapname'] == 'airtimeoi') { s.rcon('expert 8') } else { sleep 5 }

?

15
Server Discussion / Python script help needed.
« on: August 30, 2016, 02:33:18 AM »
Hello.

Me and hate are working on several server configs.

We would like to have a script wich gets the current/next map's name (e.g. airtime2) and triggers specific commands (eg. set gravity 233 or sv_consolename 2) based on wich map is the current/next one (for example if airtime3 is loaded as the current map, then set the consolename to 3 and set expert to 3 (just an example).
We also would like to have all the commands in a container form (e.g array) and then chosen from that container (e.g if airtimeoi then get the commands from the 3rd and the 6th line of the array/container).
We already did the part when the script sends some commands in rcon form to the server (for example the pgp script), but I got stuck at the part where a python script gets specific data from a running pb2 server instance, so I'd appreciate any help related to this issue (and some explanation IN the script in form of some comments too).

As always, have a nice day.

Cheers, UMaster.

16
Server Discussion / Re: C Public - new pub
« on: August 27, 2016, 07:24:15 AM »
Updated map rotation. Please review the maps in the rotation and provide feedback.
(note that some of the maps were suggested by people using a different communications form (like skype).
it can happen that rotation contains maps that were NOT reviewed by me.)

Rotation:

pbcup_pbsanctuary
beta/walled_b3
remenissions
beta/spcup_kingdom_b2
beta/noway_b3
beta/war102_b2
thod
beta/ustation_b6
beta/ruins_fx
crimethink
beta/army_b7
beta/hca_jericho_b7
beta/litrico_a1
spaint
beta/overhang_b11
riuns_fx
nml
ub_abbey
beta/sald_b3
chamber2
darkages

18
Server Discussion / Re: C Public - new pub
« on: August 12, 2016, 12:55:58 AM »
prolandr, pgptrain, pfo, spaint, freedom, london, carp, reminission, shz33, ub_columbia, beta/walled_b3, beta/spcup_kingdom_b?, beta/sald_b3

Also, I suggest to make a weekly election about the maplist to keep that updated, Beppo told me the old [K&S] serveradmins were using this system and it worked out pretty well. (Have to admit that there used to be way more players back then, tho)
Thanks for the suggestion. Weekly election will be held.
Also for the map suggestions, ub_cloumbia, walled and spcup_kingdom added automatically, I'll review the other maps with some friends. Updated main post.

as for sh33,remenissions and pfo read the main post carefully again.

pgptrain? well... if people accept a pgp map besides all other maps then ok...

19
Server Discussion / C Public - new pub
« on: August 11, 2016, 08:02:37 AM »
Hello!
I am going to set up a new pub called C Public (in beta/test phase currently, some of you have probably already played).
Goal of this server is to provide a pub with some maps that are more or less unknown and less-played in the pub scene.
I'd like to get some feedback and I'll try to keep this thread as a main thread and updated.
So if you have any feedback/comment related to my server, just post it there  :)

Info
I'll hold weekly elections regarding the maplist, wich will have a separate thread (will be created as soon as server enters final phase)
My Questions
1) Is it a good idea to put the following maps into the rotation?

- tatras
- ub_cliff
- crimethink

As always, have a nice day, and let's hope this server will be live as a stable one next week.
Cheers!
UMaster

20
Other Stuff / This man...
« on: August 09, 2016, 01:07:25 PM »
This video deserves an own thread....
Take a look (video courtesy of Zenit)

https://www.youtube.com/watch?v=SG1s_5HNd0k

(p.s gj hate!)

Pages: [1] 2 3