gacha

by esuto20

A mod that adds the familiar gacha from social games. --------------------------------------------------------------------- ソーシャルゲームでお馴染みのガチャを追加するMOD。

Content
19 days ago
2.0
64

b Infinite loop on loading mod

a month ago
(updated a month ago)

When trying to launch Factorio with your mod enabled I get this error:

Failed to load mods: gacha/prototypes/setValue.lua:61: stack overflow
stack traceback:
gacha/prototypes/setValue.lua:61: in function 'es_get_price_loop'
gacha/prototypes/setValue.lua:61: in function 'es_get_price_loop'
gacha/prototypes/setValue.lua:61: in function 'es_get_price_loop'

It goes on like that forever.

a month ago

Only vanilla and space-age have been confirmed to work.
It seems to be due to another mod.
I think there is a mod that includes a circular recipe, so please tell me which mod to install.

a month ago
(updated a month ago)

I think it would be:
Omnia's - Stone -> Crushed Stone -> Stone
Renai Transportation's - Iron Chest -> Open Chest -> Iron Chest
I'll check to make sure there are no other ones.

a month ago
(updated a month ago)

Okay after doing some more thorough checks:
The Omnia/Muluna stone thing is no longer infinite, so that one shouldn't be an issue.
Renai Transportation still has the "Iron Chest -> Open Chest -> Iron Chest" recipe
Metal & Stars has "Rocket/Nuclear/Dark matter Fuel -> Liquid Rocket/Nuclear/Dark matter Fuel -> Rocket/Nuclear/Dark matter Fuel" with the recipes being named "Empty liquid x fuel" and "Canister liquid X fuel"
These are the only recipes I've found, so far.
There might be more, so I'll keep lookout, but I think these might be it.

a month ago

Thank you for looking into this.
Please be patient as we look into how to fix this.

a month ago

I have released version 0.2.1, which incorporates a countermeasure against infinite loops.

a month ago

Thanks a lot. I'll try it out later today, if I have time!

a month ago
(updated a month ago)

Well, here we are again:

Failed to load mods: __gacha__/prototypes/setValue.lua:149: attempt to perform arithmetic on field 'amount' (a nil value)
stack traceback:
    __gacha__/prototypes/setValue.lua:149: in function 'es_get_price_loop'
    __gacha__/prototypes/setValue.lua:371: in function 'es_get_price'
    __gacha__/prototypes/setValue.lua:394: in main chunk
    [C]: in function 'require'
    __gacha__/data-final-fixes.lua:2: in main chunk

Mods to be disabled:
• gacha (0.2.1)
a month ago

Sorry, I didn't anticipate the case where the recipe result does not include the amount.
0.2.2 has been released. Please check it out.

a month ago

I'm updating as we speak. I'll let you know if it works or not.

a month ago
Failed to load mods: __gacha__/prototypes/setValue.lua:421: attempt to concatenate field 'subgroup' (a nil value)
stack traceback:
    __gacha__/prototypes/setValue.lua:421: in function 'es_get_price'
    __gacha__/prototypes/setValue.lua:436: in main chunk
    [C]: in function 'require'
    __gacha__/data-final-fixes.lua:2: in main chunk

Mods to be disabled:
• gacha (0.2.2)
a month ago

Sorry for the debugging effort, and thank you.
0.2.3 has been released. Please check it out.

a month ago

And again:

Failed to load mods: __gacha__/prototypes/setValue.lua:414: attempt to index field '?' (a nil value)
stack traceback:
    __gacha__/prototypes/setValue.lua:414: in function 'es_get_price'
    __gacha__/prototypes/setValue.lua:445: in main chunk
    [C]: in function 'require'
    __gacha__/data-final-fixes.lua:2: in main chunk

Mods to be disabled:
• gacha (0.2.3)
a month ago

I'm sorry I'm just stupid.
0.2.4 has been released. Please check it out.

a month ago

I'll check it out immediately

a month ago
Failed to load mods: Error while loading item-subgroup prototype "coin_ih[bioprocessing]m" (item-subgroup): Invalid prototype name. Only characters A-Z a-z 0-9 _- are allowed.
Modifications: gacha

Mods to be disabled:
• gacha (0.2.4)
a month ago
(updated a month ago)

I'm sorry I'm just stupid.
0.2.4 has been released. Please check it out.

And don't be too hard on yourself. Modding is hard. Especially when it comes to cross-mod compatibility issues. Thank you for all your work

a month ago

Thank you for your support, it's encouraging.
However, this may not be an effective solution at this time.
0.2.5 has been released. Please check it out.

a month ago
(updated a month ago)
Failed to load mods: Error in assignID: item-subgroup with name 'coin_g-pipesa' does not exist.

Source: pipe-tocoin (recipe).

Mods to be disabled:
• gacha (0.2.5)

We're getting there - 1 error at a time :)

a month ago

I think this might not actually be on you. I need to check something

a month ago
(updated a month ago)

There is an error in the subgroup I added in my mod, so there is a problem with this mod. I'm sorry.
I hope this is another step forward.
0.2.6 has been released. Please check it out.

a month ago

I seem to be able to load in, though I was on a different mod list for testing purposes. I'll be able to tell you if it worked in around 5 mins

a month ago

I hope for good results.

a month ago
(updated a month ago)

I loaded in successfully! And for some reason I loaded in way faster than usual!
(I'm stupid, the other mod list didn't have gacha in yet...)

a month ago

I'm glad the errors are gone.
I hope you enjoy the content.

a month ago

As much as it pains me, I must sadly bash your hopes:

144.366 Error ParallelSpriteLoader.cpp:67: Parallel sprite loading failed, falling back to normal sprite loading. The given sprite rectangle (left_top=0x0, right_bottom=64x64) is outside the actual sprite size (left_top=0x0, right_bottom=32x32).
If this is being used as an icon you may need to define the icon_size property.
See the log file for more information.: __underground-pipe-pack__/graphics/icons/underground-L-t3.png
         RAM: 17348/32633 MB, page: 54282/96121 MB, virtual: 15715/134217727 MB, extended virtual: 0 MB
 144.377 Error AtlasBuilder.cpp:1266: The given sprite rectangle (left_top=0x0, right_bottom=64x64) is outside the actual sprite size (left_top=0x0, right_bottom=32x32).
If this is being used as an icon you may need to define the icon_size property.
See the log file for more information.: __underground-pipe-pack__/graphics/icons/underground-pipe-segment-t2.png; mods: augmentor gacha Flare Stack panglia_planet more-casting Long_Range_Delivery_Drones underground-pipe-pack rubia RenaiTransportation
         Prototypes using the sprite:
           data.raw["recipe"]["underground-pipe-segment-t2-tocoin"]
           data.raw["recipe"]["underground-pipe-segment-t2-fromticket"]
           data.raw["recipe"]["item-underground-pipe-segment-t2-incineration"]
           data.raw["recipe"]["underground-pipe-segment-t2-augmenting"]
           data.raw["optimized-particle"]["long-range-delivery-drone-delivery-particle-underground-pipe-segment-t2"]
           data.raw["recipe"]["underground-pipe-segment-t2-recycling"]
           data.raw["item"]["underground-pipe-segment-t2"]
           data.raw["recipe"]["casting-underground-pipe-segment-t2"]
           data.raw["recipe"]["item-underground-pipe-segment-t2-panglia_crushing"]
           data.raw["recipe"]["yeet-item-underground-pipe-segment-t2"]
           data.raw["stream"]["RTItemProjectile-underground-pipe-segment-t260"]
           data.raw["stream"]["RTItemProjectile-underground-pipe-segment-t225"]
           data.raw["stream"]["RTItemProjectile-underground-pipe-segment-t218"]

I had realized that my real mod list didn't actually have Gacha in it, so I had to load again. This, sadly, resulted in another error. I attached the log this time, since it might help more than the minimal info the actual error gave, though I will attach the error as well:

Failed to load mods: The given sprite rectangle (left_top=0x0, right_bottom=64x64) is outside the actual sprite size (left_top=0x0, right_bottom=32x32).
If this is being used as an icon you may need to define the icon_size property.
See the log file for more information.: __underground-pipe-pack__/graphics/icons/underground-pipe-segment-t2.png
a month ago

I understand the cause, but I'm still wondering how to solve it.
It takes time.

a month ago

No need to rush. Take your time with it. I'll still be around to test it, even if it takes longer.

30 days ago

The icon size settings have been revised.
0.2.7 has been released. Please check it out.

30 days ago

I have successfully loaded in. You did it!
Thank you for all your work <3

30 days ago

After playing around with it I can report that I have not encountered any other issues so far.

30 days ago

Thank you for putting up with this long project.
Please let me know if you have any other questions.

New response