Need advice on A.I. script

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
-Kosh-
Trained
Trained
Posts: 203
Joined: 16 Sep 2009, 23:34

Re: Need advice on A.I. script

Post by -Kosh- »

Ilr wrote:Why is this Moderator " xD "ing at me??

This is what I asked for:
quoteIs there any simple way for me to update my script or should I even bother? /quote
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...
In short, no.
You replace the AI file(s) fire up the game and then when it crashes you look at stdout.txt and stderr.txt and see what is wrong.
Then fix it.
Then run it again.
Rinse & repeat.

I am not sure why you want to look at 1.10 files, just look at 2.2.3 files, and modify those, that is about as easy as your going to get.
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 »

Yeah, sorry about the spelling Lame... I just saw "moderator" and a Techy-Snit reflex went off.

I'm gradually making some headway now that I've got a <--debugfile> log going from the command line.
...apparently the Vtol-Truck driod I always used was replaced with the Constructor Cyborg instead ...which in the long run I guess is a Balance change that I approve of quite a bit. ....also the reassignTr hard-syntax had an extra word added to it or something. ...Got that out of the way, now I just have to wrestle with the internal Non-Syntax errors:

Code: Select all

--- Starting log ---
error   |09:17:27: [resGetDataFromHash] resGetDataFromHash: Unknown ID: 66d73f6 Type: WAV
error   |09:17:27: [resGetDataFromHash] Assert in Warzone: frameresource.c:551 (psRes != ((void *)0)), last script event: '<none>'
error   |09:17:27: [resGetData] resGetData: Unable to find data for pcv337.wav type WAV
error   |09:17:27: [resGetData] Assert in Warzone: frameresource.c:567 (data != ((void *)0)), last script event: '<none>'
error   |09:17:27: [resGetDataFromHash] resGetDataFromHash: Unknown ID: 66d73f6 Type: WAV
error   |09:17:27: [resGetDataFromHash] Assert in Warzone: frameresource.c:551 (psRes != ((void *)0)), last script event: '<none>'
error   |09:17:27: [resGetData] resGetData: Unable to find data for pcv337.wav type WAV
error   |09:17:27: [resGetData] Assert in Warzone: frameresource.c:567 (data != ((void *)0)), last script event: '<none>'
error   |09:17:27: [strresGetString] Could not find string for id "TigerTracksArchangel"
error   |09:17:27: [strresGetString] Assert in Warzone: strres.c:100 (string), last script event: '<none>'
error   |09:17:27: [getDroidResourceName] Unable to find string resource for string with ID "TigerTracksArchangel"
error   |09:17:27: [scrv_error] VLO parse error: Template TigerTracksArchangel not found at line 183, text: 'TigerTracksArchangel'
error   |09:17:27: [dataScriptLoadVals] Script player0.vlo did not compile
error   |09:17:27: [resLoadFile] resLoadFile: The load function for resource type "SCRIPTVAL" failed for file "player0.vlo"
error   |09:17:27: [resLoad] resLoad: failed to parse wrf/multi/skirmish4.wrf
error   |09:17:27: [startGameLoop] Shutting down after failure
...if any of these look familiar to anyone as Un-Fixable, then plz let me know ahead of time, otherwise I'm going to keep at it and hopefully fix it myself like everyone's been trying to Clue-me-In to since I started this thread...
-Kosh-
Trained
Trained
Posts: 203
Joined: 16 Sep 2009, 23:34

Re: Need advice on A.I. script

Post by -Kosh- »

This one is easy.
The game can only use .ogg files instead of .wav files. That means convert all the .wav to .ogg.
Same goes for .pcx ->.png
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 »

Thank You!

And what do I do about custom Template names now that "Templates.txt" in the Stats folder no longer works?
-Kosh-
Trained
Trained
Posts: 203
Joined: 16 Sep 2009, 23:34

Re: Need advice on A.I. script

Post by -Kosh- »

Ilr wrote:Thank You!

And what do I do about custom Template names now that "Templates.txt" in the Stats folder no longer works?
Did you know all file names are case sensitive now so you should check for that. "Templates.txt" -> "templates.txt"

Perhaps that is why it did not work?

You can post the error stuff again if that fails.
This is a waste of space. Something important should be here.
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 »

i dont laugh at people - just the situations... do not take anything personal - it isnt meant to be. i am usually a nongrumpy person - but having said that i am grumpy, so my wife tells me... but anyways... if i give anything other than the xD - there is a reason for it... isnt that why they made em in the first place? hard enuff to tel if some one is being a git or is being frustrated by something... we have all been there done that. and as i said earlier - have a good weekend. xD
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 »

and one thing i forgot to say - we need scripters. there was only 1 maybe 2 that were doing scripting - niker and troman - and lately they have both been busy - if your needing more of that type of expertise - possibly send one or both an email requestiong assistance...if they are not busy with r/l youll get help... also perhaps try karmazilla (karma)... he might be able to shed light on some aspects...not sure. i tried to get into scripting but this old mind of mine has decided to not go that direction. again - have a happy. xD
User avatar
whippersnapper
Regular
Regular
Posts: 1183
Joined: 21 Feb 2007, 15:46

Re: Need advice on A.I. script

Post by whippersnapper »

.

Everything I suggested as a solution to your probs in my second post was confirmed by your stdout.txt and stderr.txt output.

And btw, the vtol constructor was NEVER stock nor was the borg engineer introduced as its replacement (the borg engineer was released long before we came up with the first released vtol constructor) ... from day one the vtol contsructor was a custom template resource (remember that mention) and these must be addressed in the .wrfs... another reason why posting your .vlo along with your .slo was important to a more painless diagnosis. Like I said, the .slo alone was worthless.

That your scripts also included .wav files also falls under custom resources since all ais made for v.1.10 that are still compatible with the current binaries make NO use of custom resources. If you do a forum search you will find all this covered in many many postings vis-a-vis Become Prey A.I - which was scripted for v.1.10 and out of the box can run under these current binaries because it only uses stock resources-templates and requires no special .wrfs.

Regards, whip :)
.
Ilr
Trained
Trained
Posts: 61
Joined: 07 Sep 2009, 22:11

Re: Need advice on A.I. script

Post by Ilr »

Well, It's working now.... I can't explain it, but somehow all my old template/data files had vanished from their folders right when I installed 2.2 so I had to rebuild them with the new ones once I figured out where all the new templates were stored(and how). ...But yeah, some of the data that I was trying to use was also out of date, case-sensitive, in the wrong folders, and thus incompatible, along with a whole host of other mis-steps along the way that a big Trouble-Shooting guide could probably stand to be written on... O_o
lav_coyote25 wrote:and one thing i forgot to say - we need scripters. there was only 1 maybe 2 that were doing scripting - niker and troman - and lately they have both been busy - if your needing more of that type of expertise - possibly send one or both an email requestiong assistance...if they are not busy with r/l youll get help... also perhaps try karmazilla (karma)... he might be able to shed light on some aspects...not sure. i tried to get into scripting but this old mind of mine has decided to not go that direction. again - have a happy. xD
Ahh... well that explains it. Thanks a bunch for the tip, but I gave up on coding around the time that Rman Jack disappeared (God bless him wherever he is now). So I won't be pursuing anymore AI changes now that it's working. 3D-CG and art is the only thing I plan on getting my hands dirty with now that this is out of the way.
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: Ahh... well that explains it. Thanks a bunch for the tip, but I gave up on coding around the time that Rman Jack disappeared (God bless him wherever he is now). So I won't be pursuing anymore AI changes now that it's working. 3D-CG and art is the only thing I plan on getting my hands dirty with now that this is out of the way.
I truly regret our communication took a wrong turn and became adversarial instead amicable & for that I will take my share responsibility as it takes two "tango" in any way, good or bad.

I started writing that trouble shooting guide a week ago based on posting exchanges in the v.2.2.3. release thread but sadly have not had the time to finish it. It deals with all mod & a.i. incompatibility issues arising now and into the future.

And by the way, I've never disappeared entirely save for that spell in the later half of 2001 where I was hospitalized for the better part of 6 months and turned over the admin of NEWST and Project Lead to Lord Apoc. Just used different nicks, for a variety of reasons. Ironically, Ilr, you've been communicating with Rman Jack since my first post and I thought in my second post I alluded enough to that but I guess I was mistaken to assume such.

All the best with your art pursuits. That is offered at sincere face value.

Regards whip, aka, Rman Jack in another bygone era. :ninja:
.
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Need advice on A.I. script

Post by Zarel »

Ilr wrote:Thanks a bunch for the tip, but I gave up on coding around the time that Rman Jack disappeared (God bless him wherever he is now).
LOLOLOLOLOLOLOLOLOLOL

(Whipper already explained why this is so funny, so I don't need to.)

LOLOLOLOLOLOLOLOLOLOL
Ilr
Trained
Trained
Posts: 61
Joined: 07 Sep 2009, 22:11

Re: Need advice on A.I. script

Post by Ilr »

Oh man, we really gotta stop meeting this way.
whippersnapper wrote: I truly regret our communication took a wrong turn and became adversarial instead amicable & for that I will take my share responsibility as it takes two "tango" in any way, good or bad.
Nah don't worry a bit about it... I'm glad to see ya ain't takin' Guff no more. Cuz when I heard you mighta gotten really sick, I was really worried and said to myself, "Uh oh... one of the few friendly cool guys around... this usually never ends well". Take my Uncle Jerry for example, played Jazz, one of the only cool people in my entire family... went down in that plane from Buffalo last winter and it was all over the news. But the rest of us, we're all bastards so we all gonna live past 90 most likely. ...life's funny like that.

I started writing that trouble shooting guide a week ago based on posting exchanges in the v.2.2.3. release thread but sadly have not had the time to finish it. It deals with all mod & a.i. incompatibility issues arising now and into the future.
Right on, here's a few I noticed right off the bat...hope they help.
-2.2 may install *part* of its directory structure in your Profile/Documents folder and make that the working directory but only for certain files O_O ...meaning that the names and templates won't load at all if they're back in the main c:\installation folder I guess.
-.Wav file declarations seem to exist in some of the older *.VLO's, custom AND official pumpkin ones...but it didn't cause a crash
-Not having an extra blank line at the end of a templates file causes that last template to fail to load.
-Extracting the templates from the Base.WZ isn't enough, the latest ones have to come from the MP.wz whether ya wanna use that newer stuff or not.

...that's all I can remember for now...