How to use optional plugins in teeworld

Request help for teeworlds-related subjects (mapping, servers, ..).
For client issues, see our repositories (https://github.com/ddnet/ddnet/issues).
User avatar
Al_Chaponje
Posts: 9
Joined: Sun Jan 10, 2016 11:32 am
Clan: B.k All

Re: How to use optional plugins in teeworld

Post by Al_Chaponje »

hi_leute_gll wrote:It really doesn't look like you know much about C++ and especially programming in general.
You might first start with some more simple programs and a good tutorial.
look it doesn't really need to know all of c ++ just you must know the basics .......

i know them and if one of you just tell me which one in src for editing i very appreciate . just which file is for edit and add optional plugins :\
:| :| :|
User avatar
Ryozuki
Posts: 1748
Joined: Tue Feb 24, 2015 7:28 am
Location: Catalonia
Player profile: http://ddnet.tw/players/Ryozuki/
Mapper profile: http://ddnet.tw/mappers/Ryozuki/
Clan: Unique
Website: https://edgarluque.com
Discord: Ryozuki#2188

Re: How to use optional plugins in teeworld

Post by Ryozuki »

Men you should firts try to understand that there are no plugins in open source.
User avatar
deen
TECHNICAL Team
Posts: 3576
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: How to use optional plugins in teeworld

Post by deen »

Well, generally there could well be plugins in Open Source games.

Anyway, in this case I suggest to you to figure out how to compile the source code on your own. Then you can search in the source code for similar features to the one you want to write, and look at how they're implemented.

Also, if you want to learn programming for Teeworlds, it's rather written as "C with classes" than modern C++.
User avatar
Al_Chaponje
Posts: 9
Joined: Sun Jan 10, 2016 11:32 am
Clan: B.k All

Re: How to use optional plugins in teeworld

Post by Al_Chaponje »

well which file in data i should open to compile and use my own plugin ? can you tell me ?
User avatar
deen
TECHNICAL Team
Posts: 3576
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: How to use optional plugins in teeworld

Post by deen »

You will need to edit multiple files in the src directory. Compilation works like this: https://www.teeworlds.com/?page=docs&wi ... everything
milk
Posts: 207
Joined: Mon May 05, 2014 5:25 pm
Player profile: http://ddnet.tw/players/milk/

Re: How to use optional plugins in teeworld

Post by milk »

Al_Chaponje wrote:Aha. i know c++ programming but i don't know how to compile them for ddnet .
If you are on Windows, here is new tutorial: viewtopic.php?f=16&t=3061
Al_Chaponje wrote:well which file in data i should open to compile and use my own plugin ? can you tell me ?
It's not that easy. I think first you have to try to compile sources and invest your time to understand the basics at least.
User avatar
Al_Chaponje
Posts: 9
Joined: Sun Jan 10, 2016 11:32 am
Clan: B.k All

Re: How to use optional plugins in teeworld

Post by Al_Chaponje »

milk wrote:
Al_Chaponje wrote:Aha. i know c++ programming but i don't know how to compile them for ddnet .
If you are on Windows, here is new tutorial: viewtopic.php?f=16&t=3061
Al_Chaponje wrote:well which file in data i should open to compile and use my own plugin ? can you tell me ?
It's not that easy. I think first you have to try to compile sources and invest your time to understand the basics at least.
Thanks dude it was very useful .... i have some other questions

I want to create my own data for solo what should i do

second : look . for e.g. i want to a player go on e solo when he/She write /solo .... is this code write ?

char solo

cin>>solo

if( solo == /solo )
{
...............
}


i don't know how to write the player go on solo if you write me all of command AND which part called what i very appreciate
thanks dude
User avatar
Al_Chaponje
Posts: 9
Joined: Sun Jan 10, 2016 11:32 am
Clan: B.k All

Re: How to use optional plugins in teeworld

Post by Al_Chaponje »

e.g amxmodx (Use for Counter-Strike 1.6 ) has a website that named all commands and what ever that need http://amxmodx.org/api/ Does teeworld or ddnet have sth like this ?
User avatar
deen
TECHNICAL Team
Posts: 3576
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: How to use optional plugins in teeworld

Post by deen »

Only this: https://ddnet.tw/settingscommands/

Since Teeworlds and DDNet are open source you can just read the source code and edit it directly.
User avatar
timakro
Posts: 414
Joined: Mon May 05, 2014 6:05 pm
Location: Germany
Player profile: http://ddnet.tw/players/timakro/
Mapper profile: http://ddnet.tw/mappers/timakro/
Clan: unique

Re: How to use optional plugins in teeworld

Post by timakro »

Al_Chaponje wrote: i want to a player go on e solo when he/She write /solo .... is this code write ?
char solo

cin>>solo

if( solo == /solo )
{
...............
}
This could be my new signature!
Post Reply

Who is online

Users browsing this forum: No registered users and 54 guests