Page 2 of 3

Re: How to use optional plugins in teeworld

Posted: Wed Jan 13, 2016 6:29 pm
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 :\
:| :| :|

Re: How to use optional plugins in teeworld

Posted: Wed Jan 13, 2016 9:34 pm
by Ryozuki
Men you should firts try to understand that there are no plugins in open source.

Re: How to use optional plugins in teeworld

Posted: Wed Jan 13, 2016 10:06 pm
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++.

Re: How to use optional plugins in teeworld

Posted: Thu Jan 14, 2016 3:51 pm
by Al_Chaponje
well which file in data i should open to compile and use my own plugin ? can you tell me ?

Re: How to use optional plugins in teeworld

Posted: Thu Jan 14, 2016 3:59 pm
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

Re: How to use optional plugins in teeworld

Posted: Tue Jan 19, 2016 8:54 pm
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.

Re: How to use optional plugins in teeworld

Posted: Fri Mar 04, 2016 1:21 pm
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

Re: How to use optional plugins in teeworld

Posted: Fri Mar 04, 2016 6:09 pm
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 ?

Re: How to use optional plugins in teeworld

Posted: Fri Mar 04, 2016 6:17 pm
by deen
Only this: https://ddnet.org/settingscommands/

Since Teeworlds and DDNet are open source you can just read the source code and edit it directly.

Re: How to use optional plugins in teeworld

Posted: Sat Mar 05, 2016 11:07 am
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!