Page 1 of 1

[Factorio 0.14.x] Curse Exp And Cursed Classes

Posted: Sun Oct 25, 2015 3:35 am
by PhoNoTheSky
Cursed Exp Github Here / Source
Orginal Forum Here
Cursed Exp
Cursed Classes
Change Log
Report A Bug or Problem
Known Bugs or Problems
Factorio Version Support

Re: [Factorio 0.12.12] Curse Exp

Posted: Mon Jan 11, 2016 12:33 am
by Darkanrath
Sadly half of the experience is lost without Cursed Classes being updated. Thanks though for the update. I appreciate it. :D

Re: [Factorio 0.12.12] Curse Exp

Posted: Fri Jan 29, 2016 3:17 am
by Lactor
Image
Image

with chatspamming after crafting

Mod Version Cursed Exo 0.4.5, Cursed Classes 0.0.1
With Factorio Version 12.20

Re: [Factorio 0.12.12] Curse Exp

Posted: Fri Feb 19, 2016 11:51 pm
by zanetano
Game Version: 0.12.20(Build 17489, win64)
Mod Version: Cursed-Exp_0.4.5 / Treefarm-AC_0.2.3 / Treefarm-Lite_0.2.4 (no other mods)
Picture or What it says:
Image

it happened when i tried to load a saved multiplayer game.

Re: [Factorio 0.12.12] Curse Exp

Posted: Tue Mar 29, 2016 5:17 am
by JohnGalt
I tried the latest (0.4.5) version with factorio 0.12.29 and can't play very long before getting a scripting error when it tries to give me a bonus for crafting/mining/harvesting etc.. I love this mod so much but I just can't figure it out, tried editing all sorts of stuff in the code but have no idea what I'm doing. If anyone can work with me to solve this problem I'll send $5 through paypal or even willing to support through patreon if someone will keep this mod working for me. This mod adds more to the game than any other mod I've seen, I just wish it had more support.

Re: [Factorio 0.12.12] Curse Exp

Posted: Fri Apr 22, 2016 5:34 pm
by Krishonk
Sorry to respond to an old post, but I like the idea of this mod and also dabble in programming just enough to be able to pretend to program. Far as I can tell, the "attempt to call field item_prototypes" error is getting pulled up when the mod tries to display some text when you get a bonus item from a skill. The following block of code appears in the files on_preplayer_mined_item.lua, on_player_mined_item.lua, and on_player_crafted_item.lua:

Code: Select all

if global.cursed[player.name].opt[6] == true then
player.print({"msg.cursed",{"msg.item-bonus",newtp, game.item_prototypes("cursed-talent-part-" .. num).localised_name}})
game.surfaces.nauvis.create_entity({name="flying-text", position=player.position, color = player.color, text={"msg.item-bonus-flying",newtp , game.item_prototypes("cursed-talent-part-" .. num).localised_name} })
end
I don't know any Lua, so, my brute-force, inelegant solution to the problem is to unpack the .zip, go to those files, put -- at the start of each of the lines in those blocks, and re-package it. This comments them out and tells the game to just skip over that code. That'll at least let the game keep going in those instances, but it's still got a lot of tinkering that it needs that I just don't know how to do.

I've been looking at other mods to see if I can get examples for how things are coded in scripts that currently function, but I haven't seen any that use scripts to the extent that this mod does. If I find some, I'll see if I can take a crack at fixing things up myself, if development on this mod isn't planned to continue (but I hope it is!). As it stands, I have no idea how to make that pretty, or how to fix loading a saved game, but I'll keep looking.

Re: [Factorio 0.12.12] Curse Exp

Posted: Tue Apr 26, 2016 3:00 am
by JohnGalt
Any help is appreciated, I'll give what you said a try. My only "solution" so far has been to remove the access to those files altogether which pretty much ruins the whole experience because it disables the interface to pick skills.

Re: [Factorio 0.12.12] Curse Exp

Posted: Sun May 15, 2016 5:48 pm
by DexterBacklash
To fix the console spam. Go to scipt on_tick.lua

Search for this line: game.player.print(( talents[5][4].now / 200 + (stats.defence.level * datos.resDefence) / 100) * 60 * 3)

And delete it. It took me two hours of searching around to get this one out. It might have some function in game, but none that I can see.

Works with older versions as well. The other bugs still remain. I hope one day, someone will update this project as it really improves the game.

Re: [Factorio 0.12.12] Curse Exp

Posted: Tue Jun 28, 2016 9:45 am
by Tim2162286
JohnGalt wrote:I tried the latest (0.4.5) version with factorio 0.12.29 and can't play very long before getting a scripting error when it tries to give me a bonus for crafting/mining/harvesting etc.
To fix this issue i think all you need to do is replace

Code: Select all

game.item_prototypes(<Some Code>).localised_name
with

Code: Select all

game.item_prototypes[<Some Code>].localised_name
specifically, the flag for game.item_prototypes must be in brackets [], not parentheses ().

[Edit] Fixed script files, these are only the ones i found, there may be some that i missed, but based on the little testing i have done, it shouldn't crash whenever you get a bonus item. just replace the script files with these, and it should cover the worst of the problems, later I will go through all the scripts to double check there are no other instances of game.item_prototype

Re: [Factorio 0.12.12] Curse Exp

Posted: Mon Aug 22, 2016 6:10 am
by cryok1ng
if anyone still follows this post im new to the mod got any clue how to fix these 1 is when i kill a biter other is after i place a blood tank
pic 2.png
pic 2.png (1.06 MiB) Viewed 17818 times
pic 1.png
pic 1.png (1023.15 KiB) Viewed 17818 times

Re: [Factorio 0.14.x] Curse Exp And Cursed Classes

Posted: Wed Oct 12, 2016 12:44 am
by DreamSmith
New error, base 0.14, Bio-industries 1.4.5, Cursed-Exp-Remake 0.5.4. Action: Built an arrow.
12-10-16-error.jpg
12-10-16-error.jpg (105.71 KiB) Viewed 16639 times

Re: [Factorio 0.14.x] Curse Exp And Cursed Classes

Posted: Fri Nov 04, 2016 1:35 pm
by Alukat
latest stable version of Factorio (with many mods active, if that even matters):

Re: [Factorio 0.14.x] Curse Exp And Cursed Classes

Posted: Wed Feb 15, 2017 4:02 am
by Sponsch
I have the problem that if i try to load a game begun with Cursed-exp and Cursed Classes i get this error while loading:
Error while running the on_load: __Cursed-Classes__/scripts/startclass.lua:26: attempt to index global 'game' (a nil value)

when i try to load another game only begun with Cursed-exp i get this error:
Error while running the on_load: __Cursed-Exp-Remake__/scripts/on_load.lua:5: attempt to index global 'game' (a nil value)

Any help would be appreciated.
Factorio version 0.14.22
Cursed Classes 0.1.0
Cursed Exp Remake 0.5.4 downloaded from github

Re: [Factorio 0.14.x] Curse Exp And Cursed Classes

Posted: Tue Mar 14, 2017 9:25 pm
by nielskool
game :: LuaGameScript: This is the main object, through which most of the API is accessed. It is, however, not available inside handlers registered with LuaBootstrap::on_load.

This addon tries to acces the game parameter while loading a saved game.
During init there is no problem, there it is allowed/possible.

Source:http://lua-api.factorio.com/0.14.22/

think it can be fixed by replacing the onload.main function to:
function main()
loadClasses.main()
end

startclasses is redundant because also called on char creation, I guess.

//edit
This worked for me.
Will post more updates here.

//edit2
When crafting arrows I got an error in mix.lua
player table error something.

fix mix.lua:
line 15: return game.players[name]

Re: [Factorio 0.14.x] Curse Exp And Cursed Classes

Posted: Wed Mar 15, 2017 2:45 pm
by Sponsch
Now i get a different error.

__Cursed-Exp-Remake__/control.lua:144: '(' expected near 'main'

I get this error while creating or loading a game.

I changed it to this after some fiddling:

script.on_load (function main()
loadClasses.main()
end)

I changed it in the control.lua that should be coreect right?

Re: [Factorio 0.14.x] Curse Exp And Cursed Classes

Posted: Sat May 13, 2017 12:10 am
by PhoNoTheSky
It has been awhile since i last updated this. but anyone want me to update it to version 0.15

Re: [Factorio 0.14.x] Curse Exp And Cursed Classes

Posted: Fri May 19, 2017 10:10 pm
by JohnGalt
I for one would love to see an update to 15 for this one. Been a long time favorite mod of mine. Also willing to toss in a little financial incentive if it helps.

Re: [Factorio 0.14.x] Curse Exp And Cursed Classes

Posted: Mon May 07, 2018 8:36 am
by L0771
Darkanrath wrote:Sadly half of the experience is lost without Cursed Classes being updated. Thanks though for the update. I appreciate it. :D
Is working standalone in the next update (0.5.1), i'm working to plant seeds and grow trees too, a lot improvements and a much less lag, like a real mod, is possible without crashes? We'll see soon...
Krishonk wrote:I've been looking at other mods to see if I can get examples for how things are coded in scripts that currently function, but I haven't seen any that use scripts to the extent that this mod does. If I find some, I'll see if I can take a crack at fixing things up myself, if development on this mod isn't planned to continue (but I hope it is!). As it stands, I have no idea how to make that pretty, or how to fix loading a saved game, but I'll keep looking.
No, there are not many similar mods that add entities that doesn't exists...
I went back to update my mods and maybe create another little monster (Big mod)
DexterBacklash wrote:I hope one day, someone will update this project as it really improves the game.
Yep, i'll do that :)
PhoNoTheSky wrote:It has been awhile since i last updated this. but anyone want me to update it to version 0.15
Thanks you and sorry for make you read my code, i have eye hemorrhage trying to read my old code :oops:
JohnGalt wrote:I for one would love to see an update to 15 for this one. Been a long time favorite mod of mine.
<3 Sorry, i'm back, i'm never forgot factorio, it was just a break


All others posts with bugs are already solved, i want a cursed without bugs... And more blood