Sign in to follow this  
Axelocke

Client Mod not working in servers?

Recommended Posts

Axelocke    2,600

Hello! Currently workin' on a mod that adds more strings (quotes) for Lucy. It's intended to be only viewable by the client, but for some reason the new quotes I've added only seem to work on servers that I host. Public servers exclusively display Lucy's default lines, Is there something I'm missing?

 

image.thumb.png.1ed931e5a7de20ef8035192c65e6314f.png

image.png.89516c191a8fe55a1853dd0f253c7933.png

Edited by Axelocke
  • Like 1

Share this post


Link to post
Share on other sites
IronHunter    355

Maybe disable server_only_mod? Kind of seems wierd that is true when its a client side mod.

I haven't touched the modinfo for a while so I can't remember what all the features are.

  • Like 2

Share this post


Link to post
Share on other sites
Axelocke    2,600
7 hours ago, IronHunter said:

Maybe disable server_only_mod? Kind of seems wierd that is true when its a client side mod.

I haven't touched the modinfo for a while so I can't remember what all the features are.

Hmm, I've disabled it, but it didn't seem to do anything. :wilson_worried:

Share this post


Link to post
Share on other sites
thomas4845    500

i think it's the code itself as if you check the speech for pigs i think it can only save a set amount of dialogue then it doesn't work,

  • Like 1

Share this post


Link to post
Share on other sites
Axelocke    2,600
Just now, thomas4845 said:

i think it's the code itself as if you check the speech for pigs i think it can only save a set amount of dialogue then it doesn't work,

Hmm, that's unfortunate. Does this mean I'll have to replace the original quotes to make room? Oh well. :nightmare:

Edited by Axelocke

Share this post


Link to post
Share on other sites
thomas4845    500

not necessarily (don't delete just case i'm wrong make a backup) 

    --NOTE: Limit to 7 strings per table! (Using net_tinybyte for NPC chatter)
    PIG_TALK_FOLLOWWILSON = { "YOU FRIEND", "I LOVE FRIEND", "YOU IS GOOD", "I FOLLOW!" },
    PIG_TALK_FIND_LIGHT = { "SCARY", "NO LIKE DARK", "WHERE IS SUN?", "STAY NEAR FIRE", "FIRE IS GOOD" },
    PIG_TALK_LOOKATWILSON = { "WHO ARE YOU?", "YOU NOT PIG", "UGLY MONKEY PERSON", "YOU HAS MEAT?" },
    PIG_TALK_RUNAWAY_WILSON = { "TOO CLOSE!", "STAY AWAY!", "YOU BACK OFF!", "THAT MY SPACE." },
    PIG_TALK_FIGHT = { "I KILL NOW!", "YOU GO SMASH!", "RAAAWR!" },
    PIG_TALK_RUN_FROM_SPIDER = { "SPIDER BAD!", "NO LIKE SPIDER!", "SCARY SPIDER!" },
    PIG_TALK_HELP_CHOP_WOOD = { "KILL TREE!", "SMASH MEAN TREE!", "I PUNCH TREE!" },
    PIG_TALK_ATTEMPT_TRADE = { "WHAT YOU GOT?", "BETTER BE GOOD." },
    PIG_TALK_PANIC = { "NOOOOO!", "TOO DARK! TOO DARK!", "AAAAAAAAAH!!" },
    PIG_TALK_PANICFIRE = { "HOT HOT HOT!", "OWWWWW!", "IT BURNS!" },
    PIG_TALK_PANICHOUSEFIRE = { "HOUSE BURNS!", "MY STUFF!", "AAAH! FIRE!", "PANIC!" },
    PIG_TALK_PANICBOSS = { "AHHHH", "UH OH!", "ME SCARED", "BAD!", "OHHH!" },
    PIG_TALK_PANICHAUNT = { "SPOOKY!", "AAAAH!!", "A GHOST! A GHOST!" },
    PIG_TALK_FIND_MEAT = { "ME HUNGRY!", "YUM!", "I EAT FOOD!", "TIME FOR FOOD!" },
    PIG_TALK_EAT_MEAT = { "NOM NOM NOM", "YUM!" },
    PIG_TALK_GO_HOME = { "HOME TIME!", "HOME! HOME!" },
    PIG_TALK_RESCUE = { "I HELP YOU!", "OOH! OOH!", "ME HELP!" },
    PIG_TALK_GIVE_GIFT = { "YOU HAVE THIS", "FOR FRIEND" },
    PIG_TALK_GAME_GOTO = { "IT STARTING!", "THIS MY FAVORITE!", "YAY!"},
    PIG_TALK_GAME_CHEER = { "SMASH! SMASH!", "BASH!", "GO PIGS!", "RAAAWR!", "YOU STINK!", "GET GOLD!", "BASH 'EM IN HEAD!"},
    PIG_GUARD_TALK_TORCH = { "TORCH GET LOW", "MAKE TORCH BRIGHT", "MORE BURNING" },
    PIG_GUARD_TALK_FIGHT = { "FOR KING!", "DEFEND!", "SAVE KING!" },
    PIG_GUARD_TALK_GOHOME = { "MUST DEFEND!", "I PROTECT", "KING! KING!" },
    PIG_GUARD_TALK_LOOKATWILSON = { "YOU LEAVE NOW", "YOU GO AWAY", "YOU NO STAY" },
    PIG_ELITE_SMACK = { "YOU GO SMASH!", "I BASH YOU!", "STAY AWAY!", "FUN!" },
    PIG_ELITE_GOLD = { "MINE!", "MY GOLD!", "I TAKE GOLD!" },
    PIG_ELITE_SALTY = { "CHEATER!", "NO FAIR", "NOT ALLOWED DO THAT!" },

 

  • Like 1

Share this post


Link to post
Share on other sites
Axelocke    2,600
59 minutes ago, thomas4845 said:

-snip-

Oh, I see. I've made the backup, but how should I format the lines?

From

image.png.070259bb40ebf40a0d8de31805a640cd.png

 

To this?

image.thumb.png.d7c23317501b50e100d7cf821886aff0.png

 

Share this post


Link to post
Share on other sites
thomas4845    500

is it ok if i check your file because right now i'm not sure if i'm proposing the right solution

because i don't fully understand your problem

  • Thanks 1

Share this post


Link to post
Share on other sites
Axelocke    2,600

 

Just now, thomas4845 said:

is it ok if i check your file because right now i'm not sure if i'm proposing the right solution

because i don't fully understand your problem

Sure thing, I'll send it via messages.

Share this post


Link to post
Share on other sites
thomas4845    500

sorry for the inconvenience  

rn i'm just thinking that your using global strings for a client but i'm not at all sure

  • Like 1

Share this post


Link to post
Share on other sites
Serpens    481

Do you know any other mod that already achieved this as client only?
I'm currently not sure if this is even possible... On the one hand, the server is responsible for triggering the quotes. On the other hand also clients have their own talkable component.
So maybe you need to hook into the trigger from the server that tells the client to play one of the old quotes and then replace it by a new one.

  • Thanks 2

Share this post


Link to post
Share on other sites
Ultroman    530

Yeah, what Serpens said. The server is all-powerful.

Also, your api_version in your modmain.lua is wrong. It should be 10 for DST.

  • Thanks 1

Share this post


Link to post
Share on other sites
Axelocke    2,600

I guess I'll have to settle for replacement lines or simply a server only mod. Thanks for the responses!

Share this post


Link to post
Share on other sites
Hornete    952

Yeah I believe this can only work if you are REPLACING quotes instead of adding them, The client mod that replaces pig quotes with WHERES BASE and the such seem to work perfectly.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this