Jump to content


Photo

Imported scripts vanish from my AI skirmish file?


  • Please log in to reply
2 replies to this topic

#1 Echo

Echo

    T3A:Online

  • T3A Staff
  • 1,069 posts
  • Location:Germany
  • Projects:Lot3A
  •  ~~
  • Division:BFME
  • Job:T3A Moderator
  • Donated

Posted 09 November 2015 - 03:15 AM

Hi,

 

I wanted to tackle the issue of my not-working AI again, so I was taking out my AI files from half a year ago. Back then I opened ai_rohanskirmish.map and saved it as ai_elvesskirmish.map right away. I started editing the file, defining build orders and whatever needs to be done in the skirmish AI file. My AI never worked, but I wasn't that worried about it back then and just postponed my work on the AI. Today I reopened my ai_elvesskirmish map because I wanted to continue my work - and I noticed that most of the originally imported scripts were missing.

 

This is my ai_elvesskirmish.map file...

post-92561-1447037669.png

 

This is how ai_rohanskirmish.map looks, the AI file I based my file off.

 

post-92561-1447037680.png

 

 

I know there are not many BFME 1 AI experts here unfortunately, but can someone tell me why all of these imported scripts have vanished (and preferably where they are HIDING)? :xd:


Edited by Echo, 09 November 2015 - 03:16 AM.

26285.png


#2 Kwen

Kwen

    Vileartist

  • T3A Staff
  • 4,865 posts
  • Location:Korea I wish
  • Projects:It'sa secreeet
  •  T3A's First N00b
  • Division:BFME
  • Job:T3A Expert
  • Donated

Posted 09 November 2015 - 11:23 AM

What is likely happening is that the game reads its default scripts from the libraries.big. I don't know necessarily why your imported scripts have seemed to disappear, but I've found the various libraries to be a bit buggy over all. The easiest way to go about working on them is to extract the entire libraries.big and put it into a new libraries folder inside the main BFME directory, then remove the libraries.big entirely from the directory. Then you can edit and change things there and the game will detect those as the original ones. If you leave the libraries.big in, the game will tend to overwrite your changes by defaulting to the libraries contained in the big, so it's best to "force" the game to use the ones you want.

 

Also you probably have noticed that the default imported scripts that many of the libraries have don't behave the same as normally imported scripts do. But since you're creating a new library for your elves you will have to just try and mimic it as best you can by manually importing the scripts from all the necessary libraries (after you have edited them to include your new data for your faction) into your skirmish libraries.

 

Ideally if you bypass the libraries.big and change/import all the necessary things, then your new skirmish libraries should function correctly.

 

Not to mention it's easier to test your work this way since you can make quick changes to the scripts and it will be read correctly in game without having to compile them into your mod every time! :) Just don't forget to temporarily move the libraries out of your mod otherwise you will start having overwriting issues again. Just edit them in the directory folder until you're satisfied with your progress/results, then take those and compile them into your mod and put the libraries.big back. And you should have no issues then.


                           https://www.twitch.tv/vileartist - Yes shameless self-promotion

          ----------------------------------------------------------------------------------------------------------------------

                            "Old modders never die, they just fade away" ~ Hostile


#3 Echo

Echo

    T3A:Online

  • T3A Staff
  • 1,069 posts
  • Location:Germany
  • Projects:Lot3A
  •  ~~
  • Division:BFME
  • Job:T3A Moderator
  • Donated

Posted 09 November 2015 - 12:35 PM

Thank you, will try.


26285.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users