Jump to content

Recommended Posts

qrNgmly.jpg

PrefabFiles = {
    "s",
    "uniquebook"
}

Assets = {
    Asset("IMAGE", "images/saveslot_portraits/s.tex"),
    Asset("ATLAS", "images/saveslot_portraits/s.xml"),

    Asset("IMAGE", "images/selectscreen_portraits/s.tex"),
    Asset("ATLAS", "images/selectscreen_portraits/s.xml"),
    
    Asset("IMAGE", "images/selectscreen_portraits/s_silho.tex"),
    Asset("ATLAS", "images/selectscreen_portraits/s_silho.xml"),

    Asset("IMAGE", "bigportraits/s.tex"),
    Asset("ATLAS", "bigportraits/s.xml"),
    
    Asset("IMAGE", "images/map_icons/s.tex"),
    Asset("ATLAS", "images/map_icons/s.xml")
}

local require = GLOBAL.require
local STRINGS = GLOBAL.STRINGS

STRINGS.CHARACTER_TITLES.s = "The Awesome Fighter"
STRINGS.CHARACTER_NAMES.s = "S Claudiu"
STRINGS.CHARACTER_DESCRIPTIONS.s =“*has an necklace that provides light\n*Does not eat meat\n*Brings his favourite book"
STRINGS.CHARACTER_QUOTES.s = "\"I'm so awesome!\""

STRINGS.CHARACTERS.S = require "speech_maxwell"

table.insert(GLOBAL.CHARACTER_GENDERS.MALE, "s")

AddMinimapAtlas("images/map_icons/s.xml")
AddModCharacter("s")

STRINGS.NAMES.UNIQUEBOOK = "The White Path"

STRINGS.CHARACTERS.GENERIC.DESCRIBE.UNIQUEBOOK = "I love this book. It brings my trustworthy companion."

RemapSoundEvent("dontstarve/characters/s/death_voice", "s/characters/s/death_voice")
RemapSoundEvent("dontstarve/characters/s/hurt", "s/characters/s/hurt")
RemapSoundEvent("dontstarve/characters/s/talk_LP", "s/characters/s/talk_LP")

it has to do with some of those lines?

cause i don't know what to do to make the mod work?,so far it works only with SW

4 hours ago, PiturcaClaudiuStef said:

STRINGS.CHARACTER_DESCRIPTIONS.s =“*has an necklace that provides light\n*Does not eat meat\n*Brings his favourite book"

This line has an invalid character at position 35. The character is Unicode U+201C (Left Double Quotation Mark), but should be U+0022 (Quotation Mark). This was likely created by the text editor you used. I suggest using Sublime Text, the editor used by the developers (It's as free as WinRAR).

PrefabFiles = {
    "s",
    "uniquebook"
}

Assets = {
    Asset("IMAGE", "images/saveslot_portraits/s.tex"),
    Asset("ATLAS", "images/saveslot_portraits/s.xml"),

    Asset("IMAGE", "images/selectscreen_portraits/s.tex"),
    Asset("ATLAS", "images/selectscreen_portraits/s.xml"),
    
    Asset("IMAGE", "images/selectscreen_portraits/s_silho.tex"),
    Asset("ATLAS", "images/selectscreen_portraits/s_silho.xml"),

    Asset("IMAGE", "bigportraits/s.tex"),
    Asset("ATLAS", "bigportraits/s.xml"),
    
    Asset("IMAGE", "images/map_icons/s.tex"),
    Asset("ATLAS", "images/map_icons/s.xml")
}

local require = GLOBAL.require
local STRINGS = GLOBAL.STRINGS

STRINGS.CHARACTER_TITLES.S = "The Awesome Fighter"
STRINGS.CHARACTER_NAMES.S = "S Claudiu"
STRINGS.CHARACTER_DESCRIPTIONS.S =“*has an necklace that provides light*Does not eat meat*Brings his favourite book"
STRINGS.CHARACTER_QUOTES.s = "\"I'm so awesome!\""

STRINGS.CHARACTERS.S = require "speech_maxwell"

table.insert(GLOBAL.CHARACTER_GENDERS.MALE, "S")

AddMinimapAtlas("images/map_icons/S.xml")
AddModCharacter("S")

STRINGS.NAMES.UNIQUEBOOK = "The White Path"

STRINGS.CHARACTERS.GENERIC.DESCRIBE.UNIQUEBOOK = "I love this book. It brings my trustworthy companion."

RemapSoundEvent("dontstarve/characters/s/death_voice", "s/characters/s/death_voice")
RemapSoundEvent("dontstarve/characters/s/hurt", "s/characters/s/hurt")
RemapSoundEvent("dontstarve/characters/s/talk_LP", "s/characters/s/talk_LP")

new crash:

TUaOEnZ.jpg

Edited by PiturcaClaudiuStef

ocal MakePlayerCharacter = require "prefabs/player_common"

local Assets = {
        Asset( "ANIM", "anim/player_basic.zip" ),
        Asset( "ANIM", "anim/player_idles_shiver.zip" ),
        Asset( "ANIM", "anim/player_actions.zip" ),
        Asset( "ANIM", "anim/player_actions_axe.zip" ),
        Asset( "ANIM", "anim/player_actions_pickaxe.zip" ),
        Asset( "ANIM", "anim/player_actions_shovel.zip" ),
        Asset( "ANIM", "anim/player_actions_blowdart.zip" ),
        Asset( "ANIM", "anim/player_actions_eat.zip" ),
        Asset( "ANIM", "anim/player_actions_item.zip" ),
        Asset( "ANIM", "anim/player_actions_uniqueitem.zip" ),
        Asset( "ANIM", "anim/player_actions_bugnet.zip" ),
        Asset( "ANIM", "anim/player_actions_fishing.zip" ),
        Asset( "ANIM", "anim/player_actions_boomerang.zip" ),
        Asset( "ANIM", "anim/player_bush_hat.zip" ),
        Asset( "ANIM", "anim/player_attacks.zip" ),
        Asset( "ANIM", "anim/player_idles.zip" ),
        Asset( "ANIM", "anim/player_rebirth.zip" ),
        Asset( "ANIM", "anim/player_jump.zip" ),
        Asset( "ANIM", "anim/player_amulet_resurrect.zip" ),
        Asset( "ANIM", "anim/player_teleport.zip" ),
        Asset( "ANIM", "anim/wilson_fx.zip" ),
        Asset( "ANIM", "anim/player_one_man_band.zip" ),
        Asset( "ANIM", "anim/shadow_hands.zip" ),
        Asset( "SOUND", "sound/sfx.fsb" ),
        Asset( "SOUND", "sound/wilson.fsb" ),
        Asset( "ANIM", "anim/beard.zip" ),

        Asset("ANIM", "anim/s.zip"),
        Asset("SOUNDPACKAGE", "sound/s.fev"),
        Asset("SOUND", "sound/s.fsb")
}

local Prefabs = {
    "uniquebook"
}

local start_inv = {
    "uniquebook"
}

local fn = function(inst)
    inst.soundsname = "s"

    inst.MiniMapEntity:SetIcon("s.tex")
    
    inst.components.health:SetMaxHealth(200)
    inst.components.hunger:SetMax(150)
    inst.components.sanity:SetMax(175)

    inst.components.locomotor.walkspeed = 4.5
    inst.components.locomotor.runspeed = 6.5
end

return MakePlayerCharacter("s", Prefabs, Assets, fn, start_inv)

yeah from here but what line though

Guest
This topic is now closed to further replies.
×
  • Create New...