New Gear Girl Character


This mod replaces your character with a female version of the engineer, Gear Girl! Contains a fully animated character with all 3 levels of armor and custom color masks. This is an updated version of the old Gear Girl Character mod to allow better compatibility with other mods that make changes to the character (reach, flashlight, etc) and with character selector mods, like miniMAXIme.

Tweaks
1 year, 4 months ago
1.1
3.94K

g I made it work in 2.0!!

10 months ago

haiii everynyan (ugh I hate myself) I somehow made it work. you need to change this mod version in the "info.json" to 2.0 and then use my definitely very professionally programmed version of the CharacterModHelper mod and it should work. disclaimer I am NOT a modder nor a programmer but it works so idk try it ig. once I figure out if I am allowed to do it and how to upload the reworked mod here I will do it and also idk how the comments work but hello everyone who sees this!! (and thank you FuryoftheStars for making this mod/the changes to the mod you are great!)

10 months ago

Heyo, if sharing it is a problem, how about sharing what you changed?
unless it is too much of course.
Thanks in advance^^

10 months ago

Hope this mod gets updated soon or you could share a link to your working one temporarily Amiiii :)

10 months ago

Very much appreciate the work! Hope you can release an updated mod, game is unplayable without it :/

10 months ago
(updated 10 months ago)

Also made it work in 2.0, most changes are on the CharaccterModHelper. Here's the steps I took:

  1. NewGirlCharacter_1.0.1\info.json
    change "factorio_version" from "1.1" to "2.0"
  2. NewGirlCharacter_1.0.1\data.lua
    Option A: comment/remove block "NEWGEARGIRL.protos.corpse.pictures" (starts at the line 1254)
    Option B (credits to mward for figuring it out): duplicate the last entry (layers = {...} in "NEWGEARGIRL.protos.corpse.pictures". Now it will have 4 entries instead of 3. Don't forget to add a comma between the entries 3 and 4.
  3. CharacterModHelper_1.1.6\info.json:
    change "factorio_version" from "1.1" to "2.0"
  4. CharacterModHelper_1.1.6\common.lua
    change all instances of "flying-text" to "highlight-box"
  5. CharacterModHelper_1.1.6\control.lua
    change all instances of "flying-text" to "highlight-box"
    change all instances of "global" to "storage"
    change "game.get_filtered_entity_prototypes" to "prototypes.get_entity_filtered"

Update: a better corpse solution by mward. Keeping both methods in the list.

10 months ago

Uuuuh nice thank you very much for sharing the how to and what you figured out

10 months ago

Hey sorry for being dumb, but I tried doing this a few times but I keep ending up with this error when the map loads:

Error while running event CharacterModHelper::on_player_joined_game (ID 46)
CharacterModHelper/common.lua:466: Wrong argument! [LuaPlayer: index=0 name=ultrablue988 controller=character position={0.000, 0.000} surface=nauvis connected=true] is not a valid LuaPlayer or nil!
stack traceback:
[C]: in function 'error'
CharacterModHelper/common.lua:466: in function 'arg_err'
CharacterModHelper/common.lua:540: in function 'assert'
CharacterModHelper/control.lua:469: in function 'nag_about_missing_char_selector'
CharacterModHelper/control.lua:806: in function <CharacterModHelper/control.lua:790>

Do you happen to know what I keep doing wrong?

10 months ago
(updated 10 months ago)

@ultrablue988, is this a multiplayer game? Are you using any other mods that affect characters? I haven't seen this error, but I didn't test it in multiplayer or with other mods.

I'd try to comment out the lines from 806 to 810 CharacterModHelper/control.lua as they are not essential to run the mod. If it doesn't help, I'd look next into the function 'nag_about_missing_char_selector' and see if it can be passed by, either by inserting another value into the "nag" variable or just returning it before any checks were made.

Update: tested it and see no errors yet.

10 months ago

I commented out lines 806 to 810 in control.lua as you said and it works now. Thankfully I didn't have to mess with the nag_about_missing_char_selector function. I really appreciate your help

10 months ago
(updated 10 months ago)

Thank you for the help everyone I managed to get it all working now :) the only bit I didnt do was...

NewGirlCharacter_1.0.1\data.lua
comment/remove block "NEWGEARGIRL.protos.corpse.pictures"
Alternative: duplicate the last block (layers = {...} in NEWGEARGIRL.protos.corpse.pictures (credits to mward for figuring it out).

As this part I didnt understand lol. But everything seems to be working cheers! :)

Im no code expert or anything so thanks again!

10 months ago
(updated 10 months ago)

Well now I'm making more progress.

But I'm getting this error.

The mod Helper for mods that create new characters (2.0.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event CharacterModHelper::on_player_joined_game (ID 46)
CharacterModHelper/common.lua:466: Wrong argument! [LuaPlayer: index=0 name=Rosecraft controller=cutscene position={-62.063, 14.539} surface=nauvis connected=true] is not a valid LuaPlayer or nil!
stack traceback:
[C]: in function 'error'
CharacterModHelper/common.lua:466: in function 'arg_err'
CharacterModHelper/common.lua:540: in function 'assert'
CharacterModHelper/control.lua:469: in function 'nag_about_missing_char_selector'
CharacterModHelper/control.lua:806: in function <CharacterModHelper/control.lua:790>

10 months ago
(updated 10 months ago)

For Doze14 or anyone else not fully understanding the duplication part that mward figured out, first make sure to open the data.lua file in Notepad++ or some editor that shows you line count for ease of reference. Then look for the code block that should start on line 1253 beginning with:
NEWGEARGIRL.protos.corpse.pictures = {

You can simply copy the following and paste it to replace that entire block (line 1253 to line 1275). Notice how the last "layers" section is simply a repeat of the one before it:
NEWGEARGIRL.protos.corpse.pictures = {
{
layers = {
charactergeargirl_animations.level1.dead,
charactergeargirl_animations.level1.dead_mask,
charactergeargirl_animations.level1.dead_shadow
}
},
{
layers = {
charactergeargirl_animations.level2addon.dead,
charactergeargirl_animations.level2addon.dead_mask,
charactergeargirl_animations.level1.dead_shadow
}
},
{
layers = {
charactergeargirl_animations.level3addon.dead,
charactergeargirl_animations.level3addon.dead_mask,
charactergeargirl_animations.level1.dead_shadow
}
},
{
layers = {
charactergeargirl_animations.level3addon.dead,
charactergeargirl_animations.level3addon.dead_mask,
charactergeargirl_animations.level1.dead_shadow
}
}
}

10 months ago

Well, I've managed to get here.

The mod Helper for mods that create new characters (2.0.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event CharacterModHelper::on_init()
CharacterModHelper/control.lua:939:

[ER Global Lock] Forbidden global read:
{key = "global"}

stack traceback:
[C]: in function 'error'
CharacterModHelper/control.lua:939: in function 'index'
__CharacterModHelper
/control.lua:624: in function 'init'
CharacterModHelper/control.lua:723: in function <CharacterModHelper/control.lua:715>

10 months ago
(updated 10 months ago)

Well, I've managed to get here.

The mod Helper for mods that create new characters (2.0.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event CharacterModHelper::on_init()
CharacterModHelper/control.lua:939:

[ER Global Lock] Forbidden global read:
{key = "global"}

stack traceback:
[C]: in function 'error'
CharacterModHelper/control.lua:939: in function 'index'
__CharacterModHelper
/control.lua:624: in function 'init'
CharacterModHelper/control.lua:723: in function <CharacterModHelper/control.lua:715>

This error is caused by attempting to read "global", but there is no "global" anymore - it is now called "storage". You can avoid by do doing the step 5 in my first comment on this thread:

CharacterModHelper_1.1.6\control.lua
change all instances of "flying-text" to "highlight-box"
change all instances of "global" to "storage"
change "game.get_filtered_entity_prototypes" to "prototypes.get_entity_filtered"

There are about 100 mentions of "global" in the control.lua and you have to replace them all. In Notepad++ it's Ctrl+F -> Replace -> Replace All.

Are you still seeing the previous error? It can be avoided by commenting or removing lines 806 to 810 in control.lua, this solution worked for ultrablue988.

10 months ago

I've uploaded the modified versions to Google Drive. Not sure if Drive links are allowed on this platform, but here they are:

https://drive.google.com/file/d/1eX_Fn6rQJbHDcvT-6F3wOn8GBdILBoIT/view?usp=drive_link
https://drive.google.com/file/d/1Xnruxw91oJOW81utRjNsA-sBogd_5ADJ/view?usp=drive_link

You can download these and place into your mods folder. If Google Drive links are not allowed, I'll try to use a different method.

10 months ago

I've uploaded the modified versions to Google Drive. Not sure if Drive links are allowed on this platform, but here they are:

https://drive.google.com/file/d/1eX_Fn6rQJbHDcvT-6F3wOn8GBdILBoIT/view?usp=drive_link
https://drive.google.com/file/d/1Xnruxw91oJOW81utRjNsA-sBogd_5ADJ/view?usp=drive_link

You can download these and place into your mods folder. If Google Drive links are not allowed, I'll try to use a different method.

Omg, I love you~ 🌹
Thank you so much!!!

10 months ago

Thank you so much for uploading them to a googledrive :) your a hero!

10 months ago

Just dropping in to say good work and thanks :p

10 months ago

How would this interact with the new armor type?

10 months ago

How would this interact with the new armor type?

Unfortunately looks like it doesn't work. Tbh ideally it should just be the same as the regular since you're just locked in a mech

10 months ago

For new armor types, probably edit the NEWGEARGIRL.protos.character.animations variable in data.lua ?

I see that within that array there are items that contain the armor field; maybe can add the new armors to the right items? Or even create an additional item?

10 months ago

I hope the mod will be updated some day, I miss my Gear Girl :(

10 months ago

I updated (well, rewrote) the original mod for 2.0 and uploaded it to the mod portal - https://mods.factorio.com/mod/gear-girl :)

New response