Mod Issues: unsigned short error

Place to get help with not working mods / modding interface.
Scirules
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Apr 12, 2016 6:33 am
Contact:

Mod Issues: unsigned short error

Post by Scirules »

I'm a new modder and whilst trying to load my finished creation (Gigantic power pole) I ran into this: Error while loading technology prototype "Alien-Power-transmission" (technology): conversion of data to type "unsigned short" failed Modifications: Alien Power Transmission.
Does anyone know what this is, or something similar? And yes, I tried looking for it, both on Google and the forum, both turned bubcus.
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Mod Issues: unsigned short error

Post by daniel34 »

Moved to Modding help.

Unsigned short is a number variable type that has a range from 0 to 65535.
You are either using a number outside that range (such as a negative or >65535 number) or something that is not a number at all (table, string) in a place where Factorio expects a number.

Can you post the code of the technology prototype for your power pole?
quick links: log file | graphical issues | wiki
Scirules
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Apr 12, 2016 6:33 am
Contact:

Re: Mod Issues: unsigned short error

Post by Scirules »

thanks for the information, looking at the file I realized what the problem was. I set one of the research values as a decimal. (Im tryig that fix now.)
Scirules
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Apr 12, 2016 6:33 am
Contact:

Re: Mod Issues: unsigned short error

Post by Scirules »

well that worked but now I need to look up this source path error, have a feeling it has to do with texturing.
Attachments
Untitled2.png
Untitled2.png (47.54 KiB) Viewed 4051 times
Scirules
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Apr 12, 2016 6:33 am
Contact:

Re: Mod Issues: unsigned short error

Post by Scirules »

Definitely looks like texture. Is it ok if I simply copy the game textures?
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Mod Issues: unsigned short error

Post by prg »

You can simply use base game graphics like "__base__/graphics/icons/basic-grenade.png", no need to copy them into your own mod.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Scirules
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Apr 12, 2016 6:33 am
Contact:

Re: Mod Issues: unsigned short error

Post by Scirules »

Copied directly from one of my files(game files actually as i used the substation as a template.):

"filename = "__base__/graphics/entity/small-electric-pole/electric-pole-radius-visualization.png","
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Mod Issues: unsigned short error

Post by prg »

And this is giving the error? Sure there isn't a different path specification somewhere that doesn't follow this format?
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Scirules
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Apr 12, 2016 6:33 am
Contact:

Re: Mod Issues: unsigned short error

Post by Scirules »

I'll poke around, but all of the things I made were vanilla templates... :|
Scirules
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Apr 12, 2016 6:33 am
Contact:

Re: Mod Issues: unsigned short error

Post by Scirules »

I cant find ANYTHING, would you mind helping? :?
Attachments
Alien Power Transmission_1.0.0.zip
(3.04 KiB) Downloaded 96 times
Last edited by Scirules on Wed Apr 13, 2016 12:35 am, edited 1 time in total.
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Mod Issues: unsigned short error

Post by prg »

icon = "" in technology.lua is missing a file name.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Scirules
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Apr 12, 2016 6:33 am
Contact:

Re: Mod Issues: unsigned short error

Post by Scirules »

It worked, you're a lifesaver! I don't suppose you have any ideas on balancing the recipe? I'm very bad at that kind of planning.
If you do email me at scirues.artness@gmail.com
Scirules
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Apr 12, 2016 6:33 am
Contact:

Re: Mod Issues: unsigned short error

Post by Scirules »

Never mind, Just load and found it uses the wire reach and service size values of a substation, I crated a very expensive copy of a substation!!?
Sorry i'm tired and this makes no sense.
Post Reply

Return to “Modding help”