Jump to content

Tweak.xm ERROR implicit conversion from 'int' to 'unsigned short'


Go to solution Solved by Rook,

5 posts in this topic

Recommended Posts

Posted
 Preprocessing Tweak.xm...
 Compiling Tweak.xm...
Tweak.xm:182:8: error: implicit conversion from 'int' to 'unsigned short'
      changes value from 99999 to 34463 [-Werror,-Wconstant-conversion]
return 99999;
~~~~~~ ^~~~~
1 error generated.
 

RLhq2tt.jpg

Posted

Show us your tweak.xm.

 

 

%hook Blockhead
-(float) health {
return 99999;
}
-(void) subtractCash:(int)Arg {
Arg = 99999999;
}
-(int) totalCash {
return 9999999;
}
-(float) fullness {
return 99999;
}
-(float) energy {
return 99999999;
}
-(float) environment {
return 999999;
}
-(float) happiness {
return 9999999;
}
-(BOOL) hasCoffeeEnergy {
return TRUE;
}
-(int) viewRadius {
return 999;
}
-(BOOL) canMeditate {
return TRUE;
}
-(BOOL) canSleepOnSpot {
return TRUE;
}
%end

%hook NPC
-(unsigned short) maxHealth {
return 1;
}
%end

%hook Dodo
-(unsigned short) maxHealth {
return 1;
}
%end

%hook DropBear
-(unsigned short) maxHealth {
return 1;
}
%end

%hook Donkey
-(unsigned short) maxHealth {
return 1;
}
%end

%hook Boat
-(unsigned short) maxHealth {
return 99999;
}
%end

%hook ClownFish
-(unsigned short) maxHealth {
return 1;
}
%end

%hook Shark
-(unsigned short) maxHealth {
return 1;
}
%end

%hook Scorpian
-(unsigned short) maxHealth {
return 1;
}
%end

%hook CaveTroll
-(unsigned short) maxHealth {
return 1;
}
%end

%hook TrainCar
-(unsigned short) maxHealth {
return 9999;
}
%end

%hook World
-(BOOL) hdTexturesUnlocked {
return TRUE;
}
%end

%hook GameView
-(BOOL) hdTexturesUnlocked {
return TRUE;
}
%end

%hook TradingPost
-(int) coinCount {
return 99999999;
}
-(void) setCoinCount:(int)Arg {
Arg = 99999999;
}
-(int) currentBlockheadCash {
return 99999999;
}
%end

%hook TradePortal
-(int) currentBlockheadCash {
return 99999999;
}
-(int) level {
return 5;
}
%end

%hook Workbench
-(int) level {
return 5;
}
%end

%hook VGJsonStreamParserAdapter
-(unsigned int) levelToSkip {
return 5;
}
%end 

 

 

  • Solution
Posted

Return -(unsigned short) maxHealth like this:

%hook Boat
-(unsigned short) maxHealth {
return 34463;
}
%end

Because it doesn't accept a higher number.

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
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines