Need advice on A.I. script

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
Ilr
Trained
Trained
Posts: 61
Joined: 07 Sep 2009, 22:11

Need advice on A.I. script

Post by Ilr »

...I loaded up my favorite old Skirmish map yesterday and let the AI run for a while (I turned Deity on so I could watch it progress) and it looked like it was doing exactly what it ALWAYS used to do in 1.10. (IE: FAIL). So I tried to copy in my own version which was built on top of 1.10 but it crashed the game and when I went into the Base WZ file to see what had changed, I saw that the SLO files had DOUBLED in size with all kinds of new declarations and other stuff I'd never seen before.

I'll try to attach mine here just for example sake...
player0.slo
..."Il-tech" ...modified from Bonez0's & originally published 0ct, 2000 for NEWST
(96.35 KiB) Downloaded 249 times
And mine was ALREADY double the size of the base 1.10 files and now I have no memory at all of what I even did to build it, so trying to convert it to a new format looks to me like an incredibly arduous task right now.... Is it? Is there any simple way for me to update my script or should I even bother? Did anyone already make a new version that accomplishes everything mine did? (and don't ask me what it did b/c I've totally forgotten that by now too :gonk: )
User avatar
whippersnapper
Regular
Regular
Posts: 1183
Joined: 21 Feb 2007, 15:46

Re: Need advice on A.I. script

Post by whippersnapper »

Ilr wrote:...I loaded up my favorite old Skirmish map yesterday and let the AI run for a while (I turned Deity on so I could watch it progress) and it looked like it was doing exactly what it ALWAYS used to do in 1.10. (IE: FAIL). So I tried to copy in my own version which was built on top of 1.10 but it crashed the game and when I went into the Base WZ file to see what had changed, I saw that the SLO files had DOUBLED in size with all kinds of new declarations and other stuff I'd never seen before.

I'll try to attach mine here just for example sake...
player0.slo
And mine was ALREADY double the size of the base 1.10 files and now I have no memory at all of what I even did to build it, so trying to convert it to a new format looks to me like an incredibly arduous task right now.... Is it? Is there any simple way for me to update my script or should I even bother? Did anyone already make a new version that accomplishes everything mine did? (and don't ask me what it did b/c I've totally forgotten that by now too :gonk: )
One of the first things done when the source was liberated was the Expansion of the original script lang by Troman (adding string support, among other things). This was actually a main driving force for us working for many years on getting the source liberated in the first place, in fact. Troman in turn used these script lang expansions to create his first Aivolution to the v.1.10c .exe and subsequent iterations of AV and .exes.

As far as impacting older a.i.'s - I still run Pumpkin's V.1.04 A.I. on the latest binary without a problem or having to modify anything.

One of those things lost in the actual history of WZ: The first quality A.I. ever scripted by a community member was by Skorpion. It was intended primarily to feature the ai using artillery but there was some probs with the artillery scripts. At the time Skorpion had decided to move-on to other things so I asked Bones0 to take a look and like a champ he did and made it work. The result - Bones0 A.I.

You may wanna look at Karmazilla's update to the original script lang doc:

http://members.shaw.ca/kgmetcalfe4/scri ... dated.html

Lav's WZ A.I. dedicated page:

http://members.shaw.ca/kgmetcalfe4/

And the WRP Wiki Documentation:

http://docs.wz2100.net/WarzoneScript%20 ... ation.html

Including Troman's docs-tuts:

http://developer.wz2100.net/wiki/AI_Tutorial

http://developer.wz2100.net/wiki/ScriptingIntroduction

As for any necessary conversion - that won't be essential till the WZ A.I. home-brew script lang is migrated to LUA script and the WRP devs will be writing a conversion utility to that end since the original Cam scripting and base SK a.i. has to make the migration from the get go or you basically don't have much of a playable game to offer otherwise, just a coder's sandbox, and that won't do..

Regards. whip :ninja:

EDIT: Removed a duplicated URL. Woop-de-doo. Done here. :cool:
.
Last edited by whippersnapper on 18 Sep 2009, 06:09, edited 1 time in total.
Ilr
Trained
Trained
Posts: 61
Joined: 07 Sep 2009, 22:11

Re: Need advice on A.I. script

Post by Ilr »

Thanks but that really didn't answer anything and kinda reads like a CopyPasta... If older versions are still supposed to work then why's mine crashing ver 2.2? Did you atleast peek in mine to see how much work I'd needa do to get it running or which AI's could be similar? Skorp and I mighta been working on the same thing, so if there's a working version of his somewhere, then where exactly is it plz?
User avatar
whippersnapper
Regular
Regular
Posts: 1183
Joined: 21 Feb 2007, 15:46

Re: Need advice on A.I. script

Post by whippersnapper »

Ilr wrote:Thanks but that really didn't answer anything and kinda reads like a CopyPasta... If older versions are still supposed to work then why's mine crashing ver 2.2? Did you atleast peek in mine to see how much work I'd needa do to get it running or which AI's could be similar? "Skorp and I mighta been working on the same thing, so if there's a working version of his somewhere, then where exactly is it plz?
"CopyPasta".... Hmmm.... "Thanks but that really didn't answer anything" .... Really..... hmmm.

"If older versions are still supposed to work then why's mine crashing ver 2.2?"

No "supposed" about it. It's a fact. They work: v.1.04, Turtle, BP, Super, etc... Why yours is not working could be due to a score of different reasons that have NOTHING at all to do with the expanded script lang that you raised & were clueless about in your initial post. Sounds like you may be using customized resources and not just stock resources like the old a.i.s that still work. So why not look look to your resource templates, for example, compare to base, and maybe even try debugging your scripts with NiKer's VSC ... Or does that strike you as "CopyPasta" and useless as well. :rolleyes:

"Skorp and I mighta been working on the same thing.."

Doubt it strongly. Skorp's A.I. was initially scripted in June 1999 and we talked on IRC about it over that summer and as far as I know you were not even a blip on anybody's public radar at that time or even when we put out Bones0's version for X-mas '99.. Bones0's A.I. is Skorpion's A.I. with the artillery code working properly and a few other tweaks... like I already stated.... so if you have Bones0 A.I. you essentially have Skorpion's scripts.

Btw: Just posting the .slo is not enough.... you need to post the .vlo as well. Which is why I didn't waste my time the first time around looking at em. Though, now that I have, it was nice to see the nick I went by for many years in the acknowledgments. Thanks for that.

Anyway, looks like I was mistaken to get into anything of real substance here and am wasting both our time.. And I have no time to waste as I have scripts of my own to work on - and I know what they are supposed to be doing and they actually work. ;)

L8r, whip :ninja:
.
-Kosh-
Trained
Trained
Posts: 203
Joined: 16 Sep 2009, 23:34

Re: Need advice on A.I. script

Post by -Kosh- »

whippersnapper wrote: As far as impacting older a.i.'s - I still run Pumpkin's V.1.04 A.I. on the latest binary without a problem or having to modify anything.

One of those things lost in the actual history of WZ: The first quality A.I. ever scripted by a community member was by Skorpion. It was intended primarily to feature the ai using artillery but there was some probs with the artillery scripts. At the time Skorpion had decided to move-on to other things so I asked Bones0 to take a look and like a champ he did and made it work. The result - Bones0 A.I.
Can you post a link to the repository all these different AIs are on? If not, can you upload them here?
...
And the WRP Wiki Documentation:
http://docs.wz2100.net/WarzoneScript%20 ... ation.html
...
As for any necessary conversion - that won't be essential till the WZ A.I. home-brew script lang is migrated to LUA script and the WRP devs will be writing a conversion utility to that end since the original Cam scripting and base SK a.i. has to make the migration from the get go or you basically don't have much of a playable game to offer otherwise, just a coder's sandbox, and that won't do..

Regards. whip :ninja:
.
You reference WRP multiple times, but I do not get it. Is it a inside joke? O_o
This is a waste of space. Something important should be here.
Ilr
Trained
Trained
Posts: 61
Joined: 07 Sep 2009, 22:11

Re: Need advice on A.I. script

Post by Ilr »

I gotta hand it to him though, he took my dickish followup and really raised the Ante.

Before anyone else decides I'm not worth helping... just do me a huge favor whether I deserve it or not, and look at what my OP was requesting: Advice and some really rash deciphering to help me save time. Not links to a bunch of How-To's b/c that requires massive amounts of reading which is the opposite of saving time... :stressed:

Edit1
VSC looks promising though... so it wasn't a total waste.

Edit2
Nope... There doesn't appear to even be a Debugging option in VSC... well that was pointless

Edit3
AHA! He Lies. ...I just ran the original 1.10 AI files that came straight from Pumpkin and they ALSO crash this 2.2 version.
So far the only AI files I've been able to start a skirmish with are the ones I extracted directly from the Base.WZ... 1.04, shyeah right :P
User avatar
lav_coyote25
Professional
Professional
Posts: 3434
Joined: 08 Aug 2006, 23:18

Re: Need advice on A.I. script

Post by lav_coyote25 »

W R P = warzone 2100 resurrection project - not an inside joke at all - was / is the name of this project.. :3 :3 :3 xD
-Kosh-
Trained
Trained
Posts: 203
Joined: 16 Sep 2009, 23:34

Re: Need advice on A.I. script

Post by -Kosh- »

lav_coyote25 wrote:W R P = warzone 2100 resurrection project - not an inside joke at all - was / is the name of this project.. :3 :3 :3 xD
Ok, guess that was the old name and he still is using it.

Still would like to know where I can download all the other AIs so I can play with them.
This is a waste of space. Something important should be here.
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA
Contact:

Re: Need advice on A.I. script

Post by Zarel »

lav_coyote25 wrote:W R P = warzone 2100 resurrection project - not an inside joke at all - was / is the name of this project.. :3 :3 :3 xD
"Was."

The project was renamed (to "Warzone 2100 Project"/"WZP") a few months ago.
Ilr
Trained
Trained
Posts: 61
Joined: 07 Sep 2009, 22:11

Re: Need advice on A.I. script

Post by Ilr »

Is there some kind of Magic Bullet to this I'm missing? Like a Command Lime parameter that allows "degenerate" custom scripts to run that this guy's using but is hiding just so he can cackle about mine never working? ..and where DO I get a Debugger from? It doesn't even have to debug WZ script, just something to check Case, Declarations, & Brackets maybe? Otherwise I have to go through this entire goddamned thing Line...by.....L-I-N-E...... :zZz: ... :zZz: ... :zZz:
User avatar
virgilglyph
Trained
Trained
Posts: 33
Joined: 11 Jun 2008, 13:01

Re: Need advice on A.I. script

Post by virgilglyph »

nobodies hiding anything or cackling. all the info you need has already been provided you from jump street had you chosen to read carefully instead of getting all snarky with self-serving conceit. and that magic bullet is called using google to find the downloads. i just did it and it took me a combined 30 seconds to get bones0 ai, niker's VSC WZ ai debug utility, instructions on how to run custom ai via multiplay install & command line in the current game binary, v.1.04 ai, turtle a.i, etc. 'course i coulda posted all those download links i found in 30 seconds by way of the highfalutin, esoteric, google process but then that would just have been disparagingly labeled a copy-pasta, rice-a-roni, effort and who wants to deal with that sorta twerpish disposition - apparently no one wants to serve thems that come on like mofo ninnies, looks like. peace out. :stare:
User avatar
lav_coyote25
Professional
Professional
Posts: 3434
Joined: 08 Aug 2006, 23:18

Re: Need advice on A.I. script

Post by lav_coyote25 »

hello all... before it gets out of hand - step back and have a read at what all has been written. all the links are on this thread. all your going to have to do is read it. ok? this is a reminder... k thanks xD


as for a super link - http://members.shaw.ca/kgmetcalfe4/index.html this is old - but - still valid. xD
Ilr
Trained
Trained
Posts: 61
Joined: 07 Sep 2009, 22:11

Re: Need advice on A.I. script

Post by Ilr »

Why is this Moderator " xD "ing at me??

This is what I asked for:
Is there any simple way for me to update my script or should I even bother?
I didn't ask for General Guides that I already knew the where-abouts of...

A VSC Debugger itself would be very helpful and I already stated as much, so depriving me of a direct link to it is just Taunting me. How should I react to any of this? Grateful? Should I be Grateful that guides I didn't ask for are the only info provided so far? Sure I'd be grateful to the people who actually wrote those guides if the answer to my questions encompassed reading every single one of them... but why should I be grateful to anyone who just posts an elaborate version of "RTFM"? I know this isn't the best way to go about procuring this information but hospitality is a two-lane street and so far Version 2.2 is not acting anywhere near as forgiving as Whipper claims it should.

All I want to do is: A> Get my own to play on 2.2, B> Have someone point me to a similar-working Script., or C> Atleast get Pumpkin's own 1.10 files to work again so I will have a familiar place to start over from. I am not the only one who's "doing it WRONG" here if the original scripts from Pumpkin won't even load without some exotic command line parameter that as of yet continues to be withheld in this thread...
Ilr
Trained
Trained
Posts: 61
Joined: 07 Sep 2009, 22:11

Re: Need advice on A.I. script

Post by Ilr »

Okay so far I've uncovered this: viewtopic.php?f=4&t=3558&p=34500&hilit=Starter#p34500
...Some AI's that were compatible with older versions AREN'T compatible with 2.2?

Okay this kinda important news that no one bothered to mention yet.
But there's no info specifically pointing out which parts of our scripts have to be changed to make them compatible...

also of interest... "WZ-starter" won't even start the game with version 2.2
User avatar
lav_coyote25
Professional
Professional
Posts: 3434
Joined: 08 Aug 2006, 23:18

Re: Need advice on A.I. script

Post by lav_coyote25 »

Ilr wrote:Okay so far I've uncovered this: viewtopic.php?f=4&t=3558&p=34500&hilit=Starter#p34500
...Some AI's that were compatible with older versions AREN'T compatible with 2.2?
Okay this kinda important news that no one bothered to mention yet.
But there's no info specifically pointing out which parts of our scripts have to be changed to make them compatible...
also of interest... "WZ-starter" won't even start the game with version 2.2

ok - i guess we are missing the point. exactly what is it you are searching for. to make old scripts work with the new releases? you will have to start by seeing why the ones you have now crash - is there any error messages produced or does it crash to desk top immediately.

warzone starter will NOT work with any of the new versions. we asked troman if a new version supporting the recent works would be coming - not in the foreseeable future if at all.

and thanks - every once in a while my spelling isnt the greatest - so what. in this life what counts is just getting from one day to the next in some form of happy or other... ok? xD

if you have the original game - there are some files still available for the original on the warzone2100.de site... perhaps contacting kreuvf and asking him - for that information.
have a nice weekend. xD
Post Reply