Jump to content

Need help finding error in script


Obelixdk

Recommended Posts

I am trying to make a small additional mod pack containing DLC icons only (so i can easy add DLC icons to all my mods) but it fails to build every time with a "Error, Script vs. class name mismatch (UISL_ObelixDkDLCIconPack/UIScreenListener_UICustomize)"

 

this is my Screenlistner

 

 

  Reveal hidden contents

 

 

and this is my X2DownloadableContentInfo

 

 

  Reveal hidden contents

 

 

and finally this is my error log

 

 

  Reveal hidden contents

 

 

I was talking with Zyxpsilon to see if he could help, but we couldnt find the error, although he did help me with what i needed to do if there was more than one option (if then / else)

 

I used the same script for the PredatorOutfits mods DLC icon and there it worked fine..

 

Hope someone smarter than me is able to figure out what the problem with this is..

 

if you want to take a look at the entire thing it can be downloaded from my dropbox here : https://www.dropbox.com/s/ur43133u3kkmsu3/ObelixDk%20DLC%20Icon%20pack.rar?dl=0

 

Thanx in advance guys :)

Edited by Obelixdk
Link to comment
Share on other sites

Your first error is that in your screenlistener "class UIScreenListener_UICustomize extends UIScreenListener" Is not the name of the file you are using. Whatever that file is named must be what you put where UIScreenListener_UICustomize is.

 

You need one more } at the end of your Screen Listener as well (This is why indenting each section of code by bracket is very helpful).

Edited by AuroraDelta
Link to comment
Share on other sites

Gee.. both of these hints are exactly what i was suggesting in our chat yesterday evening! ;)

Funny how a slightly indented Bracket can do to a conditional loop (( or two! )).

And -- UIScreenListener_UICustomize class name was also mentionned.

Glad everything if fine now. ;)

Link to comment
Share on other sites

yeah i guess i misunderstood what you meant Zyx. Like i said i am VERY new in this stuff, so mistakes WILL happen :)

 

Sorry man :)

Edited by Obelixdk
Link to comment
Share on other sites

I got my small script working and now i can add DLC icons easy to all my mods.. even voicepacks :)

 

Thanx for the help to you two :)

http://i.imgur.com/CyQdHh5.jpg

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...