memory

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DynamicAddresses = dynamicAddresses{}

DynamicAddresses are in-between pointers that lead to values

View Source
var GameplayData = GameplayValues{}

GameplayData contains raw values taken from osu! memory

View Source
var MemCycle bool

MemCycle test

View Source
var MenuData = InMenuValues{}

MenuData contains raw values taken from osu! memory

View Source
var ResultsScreenData = ResultsScreenValues{}

ResultsScreenData contains raw values taken from osu! memory

View Source
var SettingsData = InSettingsValues{}

SettingsData contains raw values taken from osu! memory

View Source
var SongsFolderPath string

SongsFolderPath is full path to osu! Songs. Gets set automatically on Windows (through memory)

View Source
var TourneyData = TourneyValues{}

TourneyData contains raw values taken from osu! memory

View Source
var UnderWine bool

UnderWine?

View Source
var UpdateTime int

UpdateTime Intervall between value updates

Functions

func Init

func Init()

Init the whole thing and get osu! memory values to start working with it.

Types

type GameplayValues

type GameplayValues struct {
	GameMode    int32       `json:"gameMode"`
	Name        string      `json:"name"`
	Score       int32       `json:"score"`
	Accuracy    float64     `json:"accuracy"`
	Combo       combo       `json:"combo"`
	Hp          hp          `json:"hp"`
	Hits        hits        `json:"hits"`
	PP          ppG         `json:"pp"`
	KeyOverlay  keyOverlay  `json:"keyOverlay"`
	Leaderboard leaderboard `json:"leaderboard"`
}

GameplayValues inside osu!memory

type InMenuValues

type InMenuValues struct {
	MainMenuValues MainMenuValues `json:"mainMenu"`
	OsuStatus      uint32         `json:"state"`
	GameMode       int32          `json:"gameMode"`
	ChatChecker    int8           `json:"isChatEnabled"` //bool (1 byte)
	Bm             bm             `json:"bm"`
	Mods           modsM          `json:"mods"`
	PP             ppM            `json:"pp"`
}

InMenuValues inside osu!memory

type InSettingsValues

type InSettingsValues struct {
	ShowInterface bool    `json:"showInterface"` //dynamic in gameplay
	Folders       folders `json:"folders"`
}

InSettingsValues are values represented inside settings class, could be dynamic

type MainMenuValues struct {
	BassDensity float64 `json:"bassDensity"`
}

type ManiaStars

type ManiaStars struct {
	NoMod float64
	DT    float64
	HT    float64
}

func ReadManiaStars

func ReadManiaStars() (ManiaStars, error)

type Metadata

type Metadata struct {
	Artist         string `json:"artist"`
	ArtistOriginal string `json:"artistOriginal"`
	Title          string `json:"title"`
	TitleOriginal  string `json:"titleOriginal"`
	Mapper         string `json:"mapper"`
	Version        string `json:"difficulty"`
}

Metadata Map data

type Mods

type Mods int

Mods represents zero or more mods of an osu! score.

const (
	ModsNoFail Mods = 1 << iota
	ModsEasy
	ModsTouchDevice
	ModsHidden
	ModsHardRock
	ModsSuddenDeath
	ModsDoubleTime
	ModsRelax
	ModsHalfTime
	ModsNightcore
	ModsFlashlight
	ModsAutoplay
	ModsSpunOut
	ModsRelax2 // Autopilot
	ModsPerfect
	ModsKey4
	ModsKey5
	ModsKey6
	ModsKey7
	ModsKey8
	ModsFadeIn
	ModsRandom
	ModsCinema
	ModsTargetPractice
	ModsKey9
	ModsKeyCoop
	ModsKey1
	ModsKey3
	ModsKey2
	ModsScoreV2
	ModsMirror

	ModsKeyMod         Mods = ModsKey1 | ModsKey2 | ModsKey3 | ModsKey4 | ModsKey5 | ModsKey6 | ModsKey7 | ModsKey8 | ModsKey9
	ModsFreeModAllowed Mods = ModsNoFail | ModsEasy | ModsHidden | ModsHardRock | ModsSuddenDeath | ModsFlashlight | ModsFadeIn | ModsRelax | ModsSpunOut | ModsKeyMod
	ModsScoreIncrease  Mods = ModsHidden | ModsHardRock | ModsDoubleTime | ModsFlashlight | ModsFadeIn
)

Mods constants. Names are taken from official osu! documentation.

func (Mods) String

func (m Mods) String() string

type PreSongSelectAddresses

type PreSongSelectAddresses struct {
	Status        int64 `sig:"48 83 F8 04 73 1E"`
	SettingsClass int64 `sig:"83 E0 20 85 C0 7E 2F"`
}

func (PreSongSelectAddresses) Settings

func (PreSongSelectAddresses) Settings() string

type PreSongSelectData

type PreSongSelectData struct {
	Status uint32 `mem:"[Status - 0x4]"`
}

type ResultsScreenValues

type ResultsScreenValues struct {
	Name     string `json:"name"`
	Score    int32  `json:"score"`
	MaxCombo int16  `json:"maxCombo"`
	Mods     modsM  `json:"mods"`
	H300     int16  `json:"300"`
	HGeki    int16  `json:"geki"`
	H100     int16  `json:"100"`
	HKatu    int16  `json:"katu"`
	H50      int16  `json:"50"`
	H0       int16  `json:"0"`
}

type TourneyValues

type TourneyValues struct {
	Manager    tourneyManager `json:"manager"`
	IPCClients []ipcClient    `json:"ipcClients"`
}

Jump to

Keyboard shortcuts

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