Jump to content
TNG Community

ModManager: Code Fragment Not Allowed Here


XerxX

Recommended Posts

Hello all,

I need advice regarding ModManager:

A person tried to install my mod "Maternal and Paternal Lines" and had this in the log:

line 76: %target:css/genstyle.css%
line 77: %location:% code fragment not allowed here
line 89: %location:% code fragment not allowed here

When I asked him about other mods in use that modifies genstyle.css he replied:

Quote

[I have] Burials-More Details and Relationship Display.  I also have a language dropdown, but I don't see an app for it.
I tried uninstalling Burials-More Details and the Relationship Display and reinstalling your mod, and have no success in reinstalling your mod.
I deleted it from my mods, went to the mods folder and removed the files extracted from the zip and the zip file itself, copied a new zip to my server, extracted.
When I open Mod Manager, your app shows as cannot be installed before I even try.
Is there a log file or something preventing me from removing your mod that won't allow me to reinstall it?

Is his last sentence/question correct?

 

Searching both the Wiki and this forum, I found this thread:
http://tng.community/index.php?/forums/topic/9677-googlemaps-15/

Reading that, make me think that maybe he un-installed an old version of my mod and it wasn't done completely.

 

The advice I (we) need:

If there is a "Clean Up" button: Can I safely recommend him to use it? There are many other mods installed.
What are the next steps he shall take?

 

Thank You In Advance,
Erik

 

Link to comment
Share on other sites

Erik,

It does not sound like your mod is installed.  The code fragment error prevents it from being installed.   You need to ask him what the status column shows.  I suspect that it is Cannot install.  If it is partially installed, there should be a Clean Up option.

Without a copy of the mod and a copy of his genstyle.css it is difficult to know why he is getting the error.

Link to comment
Share on other sites

So it was that his css file wasn't the same as mine.

 

I have the file from the upgrade 10.1.2 - 10.1.3
I also have the css from the complete 10.1.2

In both files, the %location is correct - like the first one:

    height: 15px;
    background:url('../img/tng_small_icon_sprites.gif') no-repeat;

But in his file they are not - this is the same:

.tngsmallicon {height: 15px;
    background:url('../img/tng_small_icon_sprites.gif') no-repeat;    padding:.1em 0px 0px 18px;

The second %location is like the same

 

Now, I don't _know_ why MM didn't respond with "Bad target" or something, but my _guess_ is that, as the lines have been concatenated to the line above, MM expected a %trim-command. It doesn't accept %replace within a line.

 

Anyway, I hope it's solved now.

Erik

Link to comment
Share on other sites

Well the code in TNG 10.1.3 is

.tngsmallicon {
	height: 15px;
	background:url('../img/tng_small_icon_sprites.gif') no-repeat;

Without a complete .cfg file it is difficult to analyze problems.  Sounds like the user is not using the original TNG files or they have been modified.

Hopefully your solution was for him to copy the TNG genstyle.css to his site.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...