configs_mapped

package
v1.145.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2026 License: AGPL-3.0, AGPL-3.0 Imports: 55 Imported by: 0

Documentation

Overview

Tool to parse freelancer configs

Index

Constants

View Source
const (
	DiscoLauncherConfigName = "launcherconfig.xml"
	FlsrLauncherConfigName  = "flsr-launcher.ini"
	DiscoAPI                = "https://disco-api.dd84ai.com" //"https://discoverygc.com"
)
View Source
const (
	PobDataUrl = DiscoAPI + "/forums/base_admin.php?action=getjson"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoveryConfig

type DiscoveryConfig struct {
	Techcompat         *techcompat.Config
	Prices             *discoprices.Config
	BaseRecipeItems    *base_recipe_items.Config
	BaseRecipeModules  *base_recipe_modules.Config
	LatestPatch        autopatcher.Patch
	PlayercntlRephacks *playercntl_rephacks.Config
	PlayerOwnedBases   *pob_goods.Config
	BasesFull          *bases.Config
	Minecontrol        *minecontrol.Config
	MinecontrolNodes   *minecontrol_nodes.Config
}

type IsDruRun

type IsDruRun bool

type MappedConfigs

type MappedConfigs struct {
	FreelancerINI *exe_mapped.Config

	Universe *universe_mapped.Config
	Systems  *systems_mapped.Config

	Goods    *equipment_mapped.Config
	Shiparch *ship_mapped.Config

	InfocardmapINI *interface_mapped.Config
	Infocards      *infocard.Config
	InitialWorld   *initialworld.Config
	Empathy        *empathy_mapped.Config
	MBases         *mbases_mapped.Config
	Consts         *const_mapped.Config
	WeaponMods     *weaponmoddb.Config
	LookProps      *lootprops_mapped.Config

	NpcRankToDiff *npcranktodiff.Config
	DiffToMoney   *diff2money.Config

	FactionProps *faction_props_mapped.Config
	NpcShips     *npc_ships.Config
	ShipClasses  *shipclasses_mapped.Config
	Solararch    *solararch_mapped.Config
	Stararch     *stararch_mapped.Config
	Loadouts     *loadouts_mapped.Config
	Fuses        *fuse_mapped.Config

	Discovery *DiscoveryConfig
	FLSR      *SiriusRevivalConfig

	Overrides overrides.Overrides
	// contains filtered or unexported fields
}

func NewMappedConfigs

func NewMappedConfigs() *MappedConfigs

func TestFixtureConfigs

func TestFixtureConfigs() *MappedConfigs

func (*MappedConfigs) Clean added in v1.72.1

func (m *MappedConfigs) Clean()

func (*MappedConfigs) CraftableBaseName

func (configs *MappedConfigs) CraftableBaseName() string

func (*MappedConfigs) Equip

func (m *MappedConfigs) Equip() *equip_mapped.Config

Equip() is RAM hungry, so we are going to deallocate it when it is no longer necessary in Clean() decision is made by using memory profiler, command in taskfile

func (*MappedConfigs) GetAvgTradeLaneSpeed

func (configs *MappedConfigs) GetAvgTradeLaneSpeed() int

func (*MappedConfigs) GetInfocardName

func (configs *MappedConfigs) GetInfocardName(ids_name int, nickname string) string

func (*MappedConfigs) GetRegionName

func (configs *MappedConfigs) GetRegionName(system *universe_mapped.System) string

func (*MappedConfigs) Market

func (m *MappedConfigs) Market() *market_mapped.Config

Market() is RAM hungry, so we are going to deallocate it when it is no longer necessary in Clean() decision is made by using memory profiler, command in taskfile

func (*MappedConfigs) Read

func (*MappedConfigs) ReadDiscovery added in v1.119.4

func (cfg *MappedConfigs) ReadDiscovery(ctx context.Context, filesystem *filefind.Filesystem)

func (*MappedConfigs) ReadInfocardsWithDiscoOverrides added in v1.129.2

func (m *MappedConfigs) ReadInfocardsWithDiscoOverrides(filesystem *filefind.Filesystem)

func (*MappedConfigs) Write

func (p *MappedConfigs) Write(is_dry_run IsDruRun)

type SiriusRevivalConfig

type SiriusRevivalConfig struct {
	FLSRRecipes  *flsr_recipes.Config
	FLSRMissions *flsr_missions.Config
}

Directories

Path Synopsis
flsr
data_mapped
This package is equal to DATA folder present in Freelancer Discovery.
This package is equal to DATA folder present in Freelancer Discovery.
data_mapped/universe_mapped
parse universe.ini
parse universe.ini
exe_mapped/go-binary-pack
Package binary_pack performs conversions between some Go values represented as byte slices.
Package binary_pack performs conversions between some Go values represented as byte slices.
parserutils
bin
filefind
Package with reusable code for discovery of files and other reusable stuff like universal ini reader
Package with reusable code for discovery of files and other reusable stuff like universal ini reader
inireader
Okay we need to create syntax.
Okay we need to create syntax.
semantic
ORM mapper for Freelancer ini reader.
ORM mapper for Freelancer ini reader.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL