Is the .js api ready for prime-time?

For AI and campaign script related discussions and questions
Post Reply
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base
Contact:

Is the .js api ready for prime-time?

Post by Goth Zagog-Thou »

I ask because the more I've been working with the .ini and .js system the more I like it. The learning curve isn't really as steep as I thought, and I can pretty much dissect the varying bits of code and understand what's happening where and why.

Anything that'll get me away from the hell of .vlo and .slo, I'm all for it. :lol2:

So, is it ready? And yes, I'm willing to use Master builds (3.2).
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: Is the .js api ready for prime-time?

Post by aubergine »

There are still some features missing (see wishlist topic in this forum for more info), but it's very solid already and packed full of tasty features: https://warzone.atlassian.net/wiki/display/jsapi/API

Currently there's no way to play videos and a few other things that might be needed in campaigns, but looking at your slo/vlo scripts I'm pretty sure you'll be able to port most if not all the cam4 to js/ini. If you want it compatible with 3.1 and 3.2 some care will be needed (eg. lots of functionality is only avail in 3.2) and ini is more widely used in 3.2 as well (.txt are still dominant in 3.1).
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base
Contact:

Re: Is the .js api ready for prime-time?

Post by Goth Zagog-Thou »

Goodie! It'll be a great environment to learn it in, too. Kinda like learning wzscript (which I had to do after Milo got me started with Cam 4), only less of a headache. :lol2:

I see that some wzscript functions are still there. Is this because the functions were ported over, or are they actual wzscript calls?
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: Is the .js api ready for prime-time?

Post by aubergine »

Wzscript stuff will still be around for a while yet. The JS API often calls the same back-end code in C++ from what I can work out. But my understanding is that eventually wzscript will be removed from the game, I think the campaign and Nexus AI are the last big users of wzscript, and it's getting closer to the point where both of those can be fully ported to JS.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base
Contact:

Re: Is the .js api ready for prime-time?

Post by Goth Zagog-Thou »

That's fine, it's there and I'm familiar with it. I'm not opposed to using wzscript calls, just the endless hell of .vlo and .slo files.

To put into context, I've looked over the Original Campaign files, and they're easy to read through. Campaign 4 has a level of complexity and inter-relation that most of the time I simply hate. I also freely acknowledge that it's also of my own doing. :lol2:
User avatar
bendib
Regular
Regular
Posts: 1011
Joined: 29 Aug 2010, 05:22
Location: Imeuta
Contact:

Re: Is the .js api ready for prime-time?

Post by bendib »

I believe it's a good idea to actively maintain both APIs, and that's what I am doing in Legacy, but hey, WZScript is a bit of a pain. I keep it maintained for modding and historical purposes.
Also known as Subsentient.
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base
Contact:

Re: Is the .js api ready for prime-time?

Post by Goth Zagog-Thou »

I've got the .vlo ported to .js now. It also allowed me to clean up a lot of crap from the old one.

What I plan to do next is use the .slo as sort of a "guide" so that I'm not flying blind. The cleanups will be worth it once I sort out whats what.

I like working with the .js already. It's nice and clean, and the learning curve of how things are done in .js in general was easy. :D
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Is the .js api ready for prime-time?

Post by NoQ »

I like working with the .js already. It's nice and clean, and the learning curve of how things are done in .js in general was easy.
Couldn't agree more :)
Post Reply