[project1dev] Re: voidmap weird bug

  • From: Chris Riccobono <crysalim@xxxxxxxxx>
  • To: project1dev@xxxxxxxxxxxxx
  • Date: Wed, 24 Jun 2009 23:49:53 -0700

I also like the idea of using the player retrieve on future maps.
It's like Mario Galaxy, that helped a lot in places.

btw, the carnivore picture you linked Eric was hilarious, I am sending
that to everyone :P

On Wed, Jun 24, 2009 at 9:53 PM, Alan Wolfe<alan.wolfe@xxxxxxxxx> wrote:
> aha!
>
> the "modelid" is not a number bug...
>
> if you notice, PlayerModel only ever gets set to something if the player
> goes through the float down process.
>
> if they don't it's left as an uninitialized variable and then later used in
> the scripts.
>
> I fixed it by doin this right before the tick function:
>
> PlayerModel = Player_GetModelID();
>
> On Wed, Jun 24, 2009 at 12:00 PM, Kent Petersen <kentkmp@xxxxxxxxx> wrote:
>>
>> I attached my debug_log so I can try to explain better.
>>
>> First time initialization of the voidmap gives this error. Everything
>> seems to work fine.
>> [Error] Data_GetValue() ValueName 'Maps/VoidMap/HasFloatedDown' not found
>> or is an invalid type
>>
>> If the map is reloaded via the RELOAD command in the console or entering
>> and exiting the tent then this infinite loops
>> [Error] Model_Move() parameter 'ModelID' is not a number
>> [Error] Model_IsOnGround() parameter 'ModelID' is not a number
>> [Error] Model_IsOnGround() parameter 'ModelID' is not a number
>> [Error] Model_IsOnGround() parameter 'ModelID' is not a number
>> [Error] Model_IsOnGround() parameter 'ModelID' is not a number
>> [Error] Model_Move() parameter 'ModelID' is not a number
>> [Error] Model_IsOnGround() parameter 'ModelID' is not a number
>>
>>
>>
>
>

Other related posts: