Python and Enemy Territory !


(Ododo) #1

Hello guys !

I currently work on a project called PyET, with this plugin you can make your own ET scripts using the Python Programming Language !
More informations about PyET : on crossfire

Well, i publish one thread here because i need peoples to test this python implementation :eek: ,without these tests i can’t continue to code ! :rolleyes:

Thank you ! :):slight_smile:

UPDATE:
Pyet3 r0.1.0 released ! (check the bottom)

IRC : #pyet on @QuakeNet

[B]Try it ! :[/B]

    https://github.com/Ododo/Pyet3

(Indloon) #2

Since my ESET is blocking Tinyurl.
http://sourceforge.net/projects/pywet/files/
=)
And I tooked the image of your earlier posted message in CF.

Good luck tought;)


(Ododo) #3

Bugs with the forum :confused:
My message was :

Hello guys !

I currently work on a project called PyET, with this plugin you can make your own ET scripts using the Python Programming Language !
More informations about PyET : http://tinyurl.com/pyet-news

Well, i publish one thread here because i need peoples to test this python implementation :eek: ,without these tests i can’t continue to code ! :rolleyes:
The file to download for testing is named “Alpha_Test_08312011.zip” on the project download page : http://tinyurl.com/pywet-alphatest
(see the sourceforge wiki)

Also, a link to suggest your PyET scripts :smiley:
http://tinyurl.com/pyet-db

Thank you ! :):slight_smile:


(RazorKiller) #4

nice work, but sorry for being so detailed on this case.
Can you clarify something please.
If Python is mod addon, why there are in “Alpha_Test_08312011.zip” etded.x86 file?
Is this server/client addon and/or mod addon?

I really believe that you read ET GPL license, and that if you are giving others executable file [no matter if it is server (etded.x86) or client(et.x86)], you need to point to your source.


(Ododo) #5

[QUOTE=RazorKiller;376588]nice work, but sorry for being so detailed on this case.
Can you clarify something please.
If Python is mod addon, why there are in “Alpha_Test_08312011.zip” etded.x86 file?
Is this server/client addon and/or mod addon?

I really believe that you read ET GPL license, and that if you are giving others executable file [no matter if it is server (etded.x86) or client(et.x86)], you need to point to your source.[/QUOTE]

Hello,
Yes, sorry, maybe you’re right and its not very clear :stuck_out_tongue:
I’ll try to explain (with my poor english vocabulary).
PyET is a mod at the same level as etpub or etpro , For now i’m working only with the server part (qagame), the rest of the files (cgames and ui) do not matter. After that, etded.x86 source must be a little bit modified (2 lines of code) for the Python support , and without this 2 lines you can’t load _pyet.so.

And about the license i apologize if i breach somes rules , its not very clear for me :S
i will see that ^^


(RazorKiller) #6

OK when we can see source code? if you want to redistribute your dedicated ET server you need to open source because of GPL license.
All others respect GPL and opened their sources so others can see (sourceforge, assembla …). When will you do that?

Thanks


(Ododo) #7

What you mean with “all others” ? , those redistribute their own etded ? they are not a lot ^^
But yes PyET gonna be open-source after the first stable release, so if this alpha-test works on all Linux x86 , i set up the last pyet features.


(Runeforce) #8

[QUOTE=RazorKiller;376682]OK when we can see source code? if you want to redistribute your dedicated ET server you need to open source because of GPL license.
All others respect GPL and opened their sources so others can see (sourceforge, assembla …). When will you do that?
[/QUOTE]

This mod is based on etpub, which’s source is based on the SDK license, which is a non-copyleft, non-free license.


(RazorKiller) #9

Read before you write anything. I am not talking about mod related stuff (qagame, cgame and ui). I am talking about server specifics stuff what arent published with ET SDK


(Ododo) #10

Ok its not important , please , what i expect from this discussion is not to dispute about the license … :eek::eek:


(RazorKiller) #11

You are required to open your code for server.


(RazorKiller) #12

Look ET source code was was released under GPL GNU (General Public License) version v3.

The GPL does not require you to release your modified version, or any part of it. You are free to make modifications and use them privately, without ever releasing them. This applies to organizations (including companies), too; an organization can make a modified version and use it internally without ever releasing it outside the organization.

But if you release the modified version to the public in some way, the GPL requires you to make the modified source code available to the program’s users, under the GPL.

If you dont open your source code for server, you are breaking and violiting GPL license.


(Ododo) #13

Ok , http://sourceforge.net/p/pywet/code/


(acQu) #14

What is up here, eh ? :smiley:

Razorkiller, grab a cup of tea please and chill.


(Indloon) #15

Please Razorkiller…
A coder,can keep the code to them self…
So

Razorkiller, grab a cup of tea please and chill.


(Smurfer) #16

[QUOTE=RazorKiller;376764]

If you dont open your source code for server, you are breaking and violiting GPL license.[/QUOTE]

And you’re gonna code a mod that can sue him.


(dutchmeat) #17

Stop bitching to Razor, he’s completely right.

Getting back on topic;

Ododo, nice work, giving a choice to people of which language to use is always a good thing.

About the whole executable ‘issue’, there is a way to load your mod, without having to change the executable.
With GameMonkeyScriptmod, Apologet and me did it using QMM(Quake3 MultiMod), however, it is posible just to recreate a similar system without the whole plugin structure.
Gurke is doing that with GMSM, I’m not sure how that’s working out right now, but it’s posible.
The advantage of having it hooked like QMM is that you allow the admin to run ANY mod plus your own PyET interface, which makes the mod more appealable.

If you need some tips for this hooking stuff, let me know.


(Ododo) #18

Hi, thank you for your interest in my project.
I had thought to make my own interface between the VM and the game mod in orded to load the Python interface with any mod but i’m afraid its a bit complex for me … But i’ll go back on.
About Quake 3 MultiMod i could try to use it with PyET but i find no API documentation …


(dutchmeat) #19

The QMM project can still be admired from http://sourceforge.net/projects/qmm/
You will find examples in the stub_qmm directory of the repository where basic interceptions are explained.

The sourcecode of GameMonkeyScriptMod can be found at http://maintain-et.net/gmScriptMod/

I currently don’t have examples of hooking linux executables yourself, but I’m sure you can find them, or take a look at the QMM main how they intercept function calls.


(Ododo) #20

HI every one !

I’m taking back the development of PyEt !
The plugin is now designed to be runnable with any ET mod :slight_smile:

I’m sorry for the poor documentation at the moment , however Pyet is very similar to lua scripting.

Try it ! :

--How to: [readme.md](https://github.com/Ododo/Pyet2/blob/master/README.md)

--Download link : [pyet2-0.0.1.tar.gz](http://sourceforge.net/projects/pywet/files/pyet2-0.0.1.tar.gz/download)

--addon example : [example.py](https://github.com/Ododo/Pyet2/blob/master/pymodule/addons/example.py)