Topic: C++ modding server
Hello, i want to change hp and score bar and can not found this code in sourse. Someonecan help me?
You are not logged in. Please login or register.
Teeworlds Forum → Support → C++ modding server
Hello, i want to change hp and score bar and can not found this code in sourse. Someonecan help me?
Hey,
src/game/client/components/hud.cpp
can i change value only in server?
for example i want to change in 2nd screen value "score" to value "health"
I suggest you try learning more about the teeworlds code before you start modding. It is really no use if we tell you how to do it exactly. You need to understand how to do it and for this, you need more knowledge. Is suggest you simply start looking through the teeworlds code and try to understand how things work. You can adjust the values of some variables and see what changes. I don't know how competent you are in c++, but it might be worth to work through some tutorials and read in some books, if you don't have a lot of experience.
Btw: this probably belongs in the modding section instead of support...
Easy, download a mod
Something I can, however, would like to know if it is real only do this by editing the server?
Something I can, however, would like to know if it is real only do this by editing the server?
No, you cannot change the display of hearts from the server, the client has full control over that.
hm, can i change value to custom?
hm, can i change value to custom?
Yes.
so i want it and cant found in source...
someone can help?
I suggest you try learning more about the teeworlds code before you start modding. It is really no use if we tell you how to do it exactly. You need to understand how to do it and for this, you need more knowledge. Is suggest you simply start looking through the teeworlds code and try to understand how things work. You can adjust the values of some variables and see what changes. I don't know how competent you are in c++, but it might be worth to work through some tutorials and read in some books, if you don't have a lot of experience.
Have a look at this:
https://github.com/teeworlds/teeworlds/ … r.cpp#L821
Anyway ghost and Dune are right, if you want to create your own mod you should get an overview about source code. For experiments character.cpp is a nice start, btw.
ty, If where there is good information about the source code please share it
more qustion
i have win64 and want conpile to linux/unix/mac how can i do it?
may be virtual box?
Yeah, it's the only solution.
EDIT: Sorry, misread something, please ignore this post
ty so much
Hello i am new here but tell me how i can mod with C++
Learn C++. Don't learn Teeworlds. No, seriously, go out and buy some books about C++ and learn that first. Take your time with it, you wont learn in in a week or a month, so really take it slowly and make other (basic) things first.
Teeworlds Forum → Support → C++ modding server
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.