dswp.de http://www.dswp.de/old/ |
|
[CODE] UTC v-1.0 http://www.dswp.de/old/forum-gameserver-support/utc-v-1-0-t5785.html |
Page 1 of 2 |
Author: | eXtr33m [ 09.07.12 ] | ||
Post subject: | [CODE] UTC v-1.0 | ||
Thought this should get a new thread and not spamming wiki thread. Urban Terror Configurator Version -1.0 Yes it's minus. That's because it's just prototype, proof of concept, not even alpha, etc.. Just so zietsh can see where I want to go with this Half of the code is in bad state, as I am in middle of building the basic structure. Anyway the keyboard is kinda working you. You can bind to keys, for now only radio commands. Also I did some interactive FOV tool, but it's missing slider, so it doesn't look that good But anyway anybody knows how can you compute if u have an image with width = x pixels, with fov = Phi, what width will you get if u change Phi? I dont know if its even possible. So i faked is with linear functions for now. 5 files included, utc.html, utc.css, utc.js, jquery-1.8.0.js, fov.png
|
Author: | zietsh [ 09.08.12 ] |
Post subject: | Re: [CODE] UTC v-1.0 |
I really like where this is going Great work! |
Author: | Cookie [ 09.09.12 ] |
Post subject: | Re: [CODE] UTC v-1.0 |
maybe wurst can put this somewhere on the web server, like http://www.dswp.de/old/utc |
Author: | eXtr33m [ 09.09.12 ] | ||
Post subject: | Re: [CODE] UTC v-1.0 | ||
v-0.9.5
- Created Light-weight User Interface library aka LUI (not yet separate files) - Created tabs in LUI - Added Custom Bind Possibilty - Created Main Navigation Known Bugs
- Fov Image doesn't work (broken) zietsh wrote: Great work! Aaa thanks! Btw, what else could be in the bind tabs? We could make some usefull misc -> like changing weapons or something? i dont know much about binds in urt Cookie wrote: maybe wurst can put this somewhere on the web server, like http://www.dswp.de/utc/ Ye, we talked but there is no need to hurry, until we are version at least -0.5 Not really too usable at this time.. Anyway i will probably have this 2 weeks shitty and no time (going back home then to university).. arghhh
|
Author: | zietsh [ 09.09.12 ] |
Post subject: | Re: [CODE] UTC v-1.0 |
I wanted to have a mapposition bind (also with image) and a togglemap size which I use especially when playing bomb-mode: Example: set tog_mapsizebig "cg_mapsize 500; cg_mapalpha 1" set tog_mapsizesmall "cg_mapsize 75; cg_mapalpha 0.200000" bind KP_LEFTARROW "+vstr tog_mapsizebig tog_mapsizesmall" and then there are lots of thing for the optimized binary for sound and visual effects Or mby some stuff for a demo-view/record cfg |
Author: | Cookie [ 09.09.12 ] |
Post subject: | Re: [CODE] UTC v-1.0 |
if you need some advice on binds, let me know... |
Author: | wurst [ 09.09.12 ] |
Post subject: | Re: [CODE] UTC v-1.0 |
oki here u go... separate files: dswp_tools/utc/utc.html Integrated and authenticated (maybe u can fix that...) utc.php (content gets read from utc.php in ur directory...) |
Author: | eXtr33m [ 09.09.12 ] |
Post subject: | Re: [CODE] UTC v-1.0 |
Woot! The css file path is "utc.css" should be ./dswp_tools/utc/utc.css That will fix it... Even though it's not really needed to work with php Unless somebody would want saving of the config on the server... anyway big thanks! |
Author: | wurst [ 09.09.12 ] |
Post subject: | Re: [CODE] UTC v-1.0 |
ye, u never know :<P the inclusion brings some features like users etc... the file parsed in ./utc.php is the ./dswp_tools/utc/utc.php in ur directory.... i think the paths match, anyways the css file must be called in the <head> right? maybe its possible to throw them inline (or include them for the case the script gets called through board...) |
Author: | zietsh [ 10.10.12 ] |
Post subject: | Re: [CODE] UTC v-1.0 |
I was just thinking about this again today, still do not have the time to actually do anything again until next week, probably I will be able to do stuff then. But the idea was about the way to handle the entire binding part of the keyboard, if we would search for the for the bind in the text-area we could edit configs (Where the upload cfg is already) user copy&paste .cfg into textbox What is known: search this||||||get this|||||||||and this|||| bind[SPACE][$KEYBOARDBUTTON]"[$CONTENT]"| ||||||||||||||||||||||||||||||||||||||||| get the [$KEYBOARDBUTTON] and get[$CONTENT] I will try to make this in my vacation but im still a js idiot google will tell me how it works ^^ I think its like I will say: delete everything in line after seta, everthing after // and delete all bind[space] now read all to " and read to the next " I'm thinking about something like you could do in powershell or with awk in linux PS C:\Users\X> Get-Content G:\X_Datein\temp.txt bind 2 "ut_radio 5 1 ^7enemy.^4visible ^7= ^4true" bind 5 "ut_radio 1 6 ^7Cardiopulmonary ^7resuscitation ^7on ^7its ^7way^4!" PS C:\Users\X> Get-Content G:\X_Datein\temp.txt | %{ $_.Split('"')[0];} bind 2 bind 5 PS C:\Users\X> Get-Content G:\X_Datein\temp.txt | %{ $_.Split('"')[1];} ut_radio 5 1 ^7enemy.^4visible ^7= ^4true ut_radio 1 6 ^7Cardiopulmonary ^7resuscitation ^7on ^7its ^7way^4! PS C:\Users\x> and this in js would be awesome! |
Page 1 of 2 | All times are UTC + 1 hour |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |