mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-22 03:05:16 +00:00
main: Log puppet costume
This commit is contained in:
parent
23cdf1442d
commit
0bfd7a70b2
1 changed files with 13 additions and 12 deletions
|
@ -137,6 +137,7 @@ void drawMainHook(HakoniwaSequence *curSequence, sead::Viewport *viewport, sead:
|
||||||
gTextWriter->printf("Is in Capture: %s\n", curPupInfo->isCaptured ? "True" : "False");
|
gTextWriter->printf("Is in Capture: %s\n", curPupInfo->isCaptured ? "True" : "False");
|
||||||
gTextWriter->printf("Puppet Stage: %s\n", curPupInfo->stageName);
|
gTextWriter->printf("Puppet Stage: %s\n", curPupInfo->stageName);
|
||||||
gTextWriter->printf("Puppet Scenario: %u\n", curPupInfo->scenarioNo);
|
gTextWriter->printf("Puppet Scenario: %u\n", curPupInfo->scenarioNo);
|
||||||
|
gTextWriter->printf("Puppet Costume: H: %s B: %s\n", curPupInfo->costumeHead, curPupInfo->costumeBody);
|
||||||
//gTextWriter->printf("Packet Coords:\nX: %f\nY: %f\nZ: %f\n", curPupInfo->playerPos.x, curPupInfo->playerPos.y, curPupInfo->playerPos.z);
|
//gTextWriter->printf("Packet Coords:\nX: %f\nY: %f\nZ: %f\n", curPupInfo->playerPos.x, curPupInfo->playerPos.y, curPupInfo->playerPos.z);
|
||||||
// if (curModel) {
|
// if (curModel) {
|
||||||
// sead::Vector3f* pupPos = al::getTrans(curModel);
|
// sead::Vector3f* pupPos = al::getTrans(curModel);
|
||||||
|
@ -165,7 +166,7 @@ void drawMainHook(HakoniwaSequence *curSequence, sead::Viewport *viewport, sead:
|
||||||
if (debugPuppet && debugInfo) {
|
if (debugPuppet && debugInfo) {
|
||||||
|
|
||||||
al::LiveActor *curModel = debugPuppet->getCurrentModel();
|
al::LiveActor *curModel = debugPuppet->getCurrentModel();
|
||||||
|
|
||||||
gTextWriter->printf("Is Nametag Visible: %s\n", BTOC(debugPuppet->mNameTag->isVisible()));
|
gTextWriter->printf("Is Nametag Visible: %s\n", BTOC(debugPuppet->mNameTag->isVisible()));
|
||||||
gTextWriter->printf("Is Nametag Alive: %s\n", BTOC(debugPuppet->mNameTag->mIsAlive));
|
gTextWriter->printf("Is Nametag Alive: %s\n", BTOC(debugPuppet->mNameTag->mIsAlive));
|
||||||
gTextWriter->printf("Nametag Normalized Dist: %f\n", debugPuppet->mNameTag->mNormalizedDist);
|
gTextWriter->printf("Nametag Normalized Dist: %f\n", debugPuppet->mNameTag->mNormalizedDist);
|
||||||
|
@ -178,14 +179,14 @@ void drawMainHook(HakoniwaSequence *curSequence, sead::Viewport *viewport, sead:
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
{
|
{
|
||||||
al::PlayerHolder *pHolder = al::getScenePlayerHolder(curScene);
|
al::PlayerHolder *pHolder = al::getScenePlayerHolder(curScene);
|
||||||
PlayerActorHakoniwa *p1 = pHolder->tryGetPlayer(0);
|
PlayerActorHakoniwa *p1 = pHolder->tryGetPlayer(0);
|
||||||
|
|
||||||
if (p1->mHackKeeper && p1->mHackKeeper->currentHackActor) {
|
if (p1->mHackKeeper && p1->mHackKeeper->currentHackActor) {
|
||||||
|
|
||||||
al::LiveActor *curHack = p1->mHackKeeper->currentHackActor;
|
al::LiveActor *curHack = p1->mHackKeeper->currentHackActor;
|
||||||
|
|
||||||
gTextWriter->printf("Current Hack Animation: %s\n", al::getActionName(curHack));
|
gTextWriter->printf("Current Hack Animation: %s\n", al::getActionName(curHack));
|
||||||
gTextWriter->printf("Current Hack Name: %s\n",
|
gTextWriter->printf("Current Hack Name: %s\n",
|
||||||
p1->mHackKeeper->getCurrentHackName());
|
p1->mHackKeeper->getCurrentHackName());
|
||||||
|
@ -209,14 +210,14 @@ void drawMainHook(HakoniwaSequence *curSequence, sead::Viewport *viewport, sead:
|
||||||
gTextWriter->printf("Cap Skew: %f\n", p1->mHackCap->mJointKeeper->mSkew);
|
gTextWriter->printf("Cap Skew: %f\n", p1->mHackCap->mJointKeeper->mSkew);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
renderer->begin();
|
renderer->begin();
|
||||||
|
|
||||||
//sead::Matrix34f mat = sead::Matrix34f::ident;
|
//sead::Matrix34f mat = sead::Matrix34f::ident;
|
||||||
//mat.setBase(3, sead::Vector3f::zero); // Sets the position of the matrix.
|
//mat.setBase(3, sead::Vector3f::zero); // Sets the position of the matrix.
|
||||||
// For cubes, you need to put this at the location.
|
// For cubes, you need to put this at the location.
|
||||||
|
@ -244,7 +245,7 @@ void sendShinePacket(GameDataHolderWriter thisPtr, Shine* curShine) {
|
||||||
if (!curShine->isGot()) {
|
if (!curShine->isGot()) {
|
||||||
Client::sendShineCollectPacket(curShine->shineId);
|
Client::sendShineCollectPacket(curShine->shineId);
|
||||||
}
|
}
|
||||||
|
|
||||||
GameDataFunction::setGotShine(thisPtr, curShine->curShineInfo);
|
GameDataFunction::setGotShine(thisPtr, curShine->curShineInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -252,7 +253,7 @@ void stageInitHook(al::ActorInitInfo *info, StageScene *curScene, al::PlacementI
|
||||||
|
|
||||||
al::initActorInitInfo(info, curScene, placement, lytInfo, factory, sceneMsgCtrl,
|
al::initActorInitInfo(info, curScene, placement, lytInfo, factory, sceneMsgCtrl,
|
||||||
dataHolder);
|
dataHolder);
|
||||||
|
|
||||||
Client::clearArrays();
|
Client::clearArrays();
|
||||||
|
|
||||||
Client::setSceneInfo(*info, curScene);
|
Client::setSceneInfo(*info, curScene);
|
||||||
|
@ -264,7 +265,7 @@ void stageInitHook(al::ActorInitInfo *info, StageScene *curScene, al::PlacementI
|
||||||
}
|
}
|
||||||
|
|
||||||
Client::sendGameInfPacket(info->mActorSceneInfo.mSceneObjHolder);
|
Client::sendGameInfPacket(info->mActorSceneInfo.mSceneObjHolder);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PlayerCostumeInfo *setPlayerModel(al::LiveActor *player, const al::ActorInitInfo &initInfo, const char *bodyModel, const char *capModel, al::AudioKeeper *keeper, bool isCloset) {
|
PlayerCostumeInfo *setPlayerModel(al::LiveActor *player, const al::ActorInitInfo &initInfo, const char *bodyModel, const char *capModel, al::AudioKeeper *keeper, bool isCloset) {
|
||||||
|
@ -281,7 +282,7 @@ ulong constructHook() { // hook for constructing anything we need to globally b
|
||||||
__asm("MOV %[result], X20"
|
__asm("MOV %[result], X20"
|
||||||
: [result] "=r"(
|
: [result] "=r"(
|
||||||
initInfo)); // Save our scenes init info to a gloabl ptr so we can access it later
|
initInfo)); // Save our scenes init info to a gloabl ptr so we can access it later
|
||||||
|
|
||||||
Client::sInstance = new Client(playBufSize);
|
Client::sInstance = new Client(playBufSize);
|
||||||
|
|
||||||
return 0x20;
|
return 0x20;
|
||||||
|
@ -311,7 +312,7 @@ bool hakoniwaSequenceHook(HakoniwaSequence* sequence) {
|
||||||
if (isFirstStep) {
|
if (isFirstStep) {
|
||||||
Client::tryRestartCurrentMode();
|
Client::tryRestartCurrentMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
isInGame = !stageScene->isPause();
|
isInGame = !stageScene->isPause();
|
||||||
|
|
||||||
Client::setGameActive(!stageScene->isPause());
|
Client::setGameActive(!stageScene->isPause());
|
||||||
|
@ -348,7 +349,7 @@ bool hakoniwaSequenceHook(HakoniwaSequence* sequence) {
|
||||||
if (debugPuppetIndex >= playBufSize)
|
if (debugPuppetIndex >= playBufSize)
|
||||||
debugPuppetIndex = 0;
|
debugPuppetIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (al::isPadHoldL(-1)) {
|
} else if (al::isPadHoldL(-1)) {
|
||||||
if (al::isPadTriggerLeft(-1)) Client::toggleCurrentMode();
|
if (al::isPadTriggerLeft(-1)) Client::toggleCurrentMode();
|
||||||
if (al::isPadTriggerRight(-1)) {
|
if (al::isPadTriggerRight(-1)) {
|
||||||
|
@ -389,7 +390,7 @@ bool hakoniwaSequenceHook(HakoniwaSequence* sequence) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void seadPrintHook(const char *fmt, ...)
|
void seadPrintHook(const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, fmt);
|
va_start(args, fmt);
|
||||||
|
|
Loading…
Reference in a new issue