Jump to content

Modgames error (a nin value), please help


Recommended Posts

Hello people, I have a really bad problema about my mod, today I deactivated my mods recently because I wanted to use map revealer, because map revealer had issues with other mods, but when I deactivate all of my recent mods I got this when I pressed the mod button.
When it finished to charge, this appears, I tried everything to solve it, including delete my saves file and "STEAMCLOUD=true" in the .ini in the files of the game, this only happened today and it's worrying me if I'll be able to use mods again.

untitled.png

Link to comment
Share on other sites

Same is happening to me too.

GoG version, linux. Just bought today.
More worse, it was crashed immediately after I go into mods tab.

However, I think, I found some (quick & dirty) solution.

1. Open file modsscreen.lua (from screenshot) in your text editor, go to string 190.

2. Remove or comment next code:

	for i = 1, #self.modlinks do
		local title = jsonresult["modnames"][randomPicks[i]]
		if title then 
			local url = jsonresult["modlinks"][title]
			title = string.gsub(title, "(ws%-)", "")
			if string.len(title) > 25 then
				title = string.sub(title, 0, 25).."..."
			end
			self.modlinks[i]:SetText(title)
			if url then
				self.modlinks[i]:SetOnClick(function() VisitURL(url) end)
			end
		end
	end

	local title, url = next(jsonresult["modfeature"])
	if title and url then
		title = string.gsub(title, "(ws%-)", "")
		self.featuredbutton:SetText(title)
		self.featuredbutton:SetOnClick(function() VisitURL(url) end)
	end

After this, it will stop trying connect to steam in this place. (Actually, it must not seek steam on GoG version. But it do it.)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...