server extentions

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
User avatar
stealthx
Trained
Trained
Posts: 39
Joined: 01 Dec 2010, 00:59

server extentions

Post by stealthx »

Hello, i was wondering how i would approach modding warzone so that it interacts with the data on a website i am creating.

The way this will intend to work is:

1. install warzone mod
2. goto website
3. chose to attack or set up a defence via the website
4. in wazone, whether attacking or being attacked, the data of who lost and won is fed to the website.

the mod will be a client for the website, as the website will serve as a story/multiplayer extension
"Game over man! Game over!"

In-game User: Penguin Army
Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Re: server extentions

Post by Lord Apocalypse »

Not possible and would require a major change in the game itself
User avatar
Iluvalar
Regular
Regular
Posts: 1828
Joined: 02 Oct 2010, 18:44

Re: server extentions

Post by Iluvalar »

Not so sure. If the javascript support ajax, it could be possible.
Heretic 2.3 improver and proud of it.
User avatar
aubergine
Professional
Professional
Posts: 3462
Joined: 10 Oct 2010, 00:58

Re: server extentions

Post by aubergine »

I don't think current JS API has any way to connect to internet: https://warzone.atlassian.net/wiki/disp ... S+Features
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Re: server extentions

Post by Lord Apocalypse »

Real question though.. would anyone really *want* this kind of potential security nightmare.
User avatar
aubergine
Professional
Professional
Posts: 3462
Joined: 10 Oct 2010, 00:58

Re: server extentions

Post by aubergine »

I'd love for the front-end menus to be eventually replaced by a sort of embedded browser so they can be created using HTML/CSS/JS. If that ever happens, it would be great to have things like WZ news, list of unread forum topics, etc., available in that interface.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Re: server extentions

Post by Lord Apocalypse »

It should be possible to do most of that w/o having to change the menu over to html etc.
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: server extentions

Post by vexed »

aubergine wrote:I'd love for the front-end menus to be eventually replaced by a sort of embedded browser so they can be created using HTML/CSS/JS. If that ever happens, it would be great to have things like WZ news, list of unread forum topics, etc., available in that interface.
You know, at one time I thought it would be nice to have a Warzone 2100 startup app, that can have all that and more.
It would have been made via Qt, so you would have all the nice GUI stuff that we need, like list boxes, scroll bars, and all that, then it would spawn the game with the selected parameters.
That idea landed with a thud. :...:
/facepalm ...Grinch stole Warzone🙈🙉🙊 contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
User avatar
aubergine
Professional
Professional
Posts: 3462
Joined: 10 Oct 2010, 00:58

Re: server extentions

Post by aubergine »

An infamous bat once said... wrote:"Oh, gravity does work..." >THUD<
I guess it went >THUD< due to the amount of coding that would be required?

With HTML/CSS/JS all the UI stuff like list boxes, etc., would be ready made -- basically anything you could do with a web page could be done. Not sure how it would interact with physfs (or whatever it is called) though :s

To whet your appetite, imagine the JS API provided a "installMod()" function that passed a mod id pulled that mod from the addons database and put it in mods/autoload or mods/maps as applicable. Would be very easy for HTML-based frontend to render out custom view of addons area with "Install Now" buttons... And, assuming we eventually get the ability to list files / folders in physfs via JS API, it would be able to show which mods you've got installed already. JS persistence object that Per was pondering would allow it to remember which versions of mods have been downloaded and thus tell user when updates are available, etc.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: server extentions

Post by NoQ »

vexed wrote:You know, at one time I thought it would be nice to have a Warzone 2100 startup app, that can have all that and more.
It would have been made via Qt, so you would have all the nice GUI stuff that we need, like list boxes, scroll bars, and all that, then it would spawn the game with the selected parameters.
That idea landed with a thud. :...:
The only thing needed is more command-line interface (start a specific map with a specific setting, print the game result on the command line, etc.), then anybody can naturally (unix-way) write as many frontends as they want (?)
User avatar
Terminator
Regular
Regular
Posts: 1077
Joined: 05 Aug 2006, 13:46
Location: Ukraine

Re: server extentions

Post by Terminator »

NoQ wrote:The only thing needed is more command-line interface (start a specific map with a specific setting, print the game result on the command line, etc.), then anybody can naturally (unix-way) write as many frontends as they want (?)
Yea, about year ago I've been dreaming to make a "launcher" with chat & other cool stuff. But when I've look the code notice lack of console cmds. I succeed to make a prototype but it was so unuseable, so I set project to "hold" state.
I remember long time ago, in 2.0.x times, I adviced devs to make more commands, especially to enhance --host with more params, at least to trigger an actual hosting not just run wz to pre-host screen. Everything else could be possible to make via external app (just changing config file). I would love to go back to my "warzone online" :geek:
Death is the only way out... sh*t Happens !

Russian-speaking Social network Group http://vk.com/warzone2100
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: server extentions

Post by NoQ »

Not sure how far allowing hosting from cmdline stays from a dedicated server (just host a map, put yourself to a spectator slot and press ready, whoever comes can play, close the program after the game ends, put it all into a while(1) loop ... probably don't create a window, so that gpu didn't matter?).
User avatar
stealthx
Trained
Trained
Posts: 39
Joined: 01 Dec 2010, 00:59

Re: server extentions

Post by stealthx »

i see, so would it be better to just edit warzone directly or create an automated server starter?
"Game over man! Game over!"

In-game User: Penguin Army
User avatar
Terminator
Regular
Regular
Posts: 1077
Joined: 05 Aug 2006, 13:46
Location: Ukraine

Re: server extentions

Post by Terminator »

stealthx wrote:i see, so would it be better to just edit warzone directly or create an automated server starter?
both, First to edit warzone, so we could make "an automated server starter".
Death is the only way out... sh*t Happens !

Russian-speaking Social network Group http://vk.com/warzone2100
User avatar
stealthx
Trained
Trained
Posts: 39
Joined: 01 Dec 2010, 00:59

Re: server extentions

Post by stealthx »

ok... gotcha.

so what is Warzone 2100 programed in anyways? are there any resources for the APIs and stuffs?
"Game over man! Game over!"

In-game User: Penguin Army