Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Bobboau on August 30, 2003, 04:06:40 pm

Title: Argument type mismatch
Post by: Bobboau on August 30, 2003, 04:06:40 pm
Quote
Error: Argument type mismatch.

In sexpression: ( and
   ( is-destroyed-delay 21 "Aquarius 3" )
   ( is-destroyed-delay
      ( rand 5 21 )
      "Scorpio"
   )
)
(Error appears to be: rand)
File:D:\FSO\fs2_open\code\Mission\MissionParse.cpp
Line: 4168

Call stack:
------------------------------------------------------------------
    parse_mission()    parse_main()    mission_load()    game_start_mission()    game_enter_state()    gameseq_set_state()    game_process_event()    gameseq_process_events()    WinMainSub()    WinMain()    WinMainCRTStartup()    kernel32.dll 77e814c7()
------------------------------------------------------------------


I updated my CVS and got this when playing the last mission, has somone done something to the rand fuction or something as anything with rand in the last mission, I have herd of similar errors from other people, as far as I know this wasn't there before I updated
actualy I just checked the copy I made just prior to updateing and it doesn't come up, so this is defenantly a recent (as in the last 8 days) thing
Title: Argument type mismatch
Post by: Goober5000 on August 30, 2003, 05:05:37 pm
That's my fault - sort of.  It comes from trying to incorporate signed numbers into what was previously a 100% unsigned sexp model.

I'll see what I can do.
Title: Argument type mismatch
Post by: Goober5000 on August 30, 2003, 08:08:50 pm
Fixed, but I can't CVS it until warpcore comes back online.
Title: Argument type mismatch
Post by: phreak on August 30, 2003, 08:32:32 pm
i committed something two hours ago or so
Title: Argument type mismatch
Post by: Goober5000 on August 30, 2003, 08:48:02 pm
Odd... my CVS won't connect.
Title: Argument type mismatch
Post by: Bobboau on August 30, 2003, 09:24:36 pm
neither will mine, though it did earlier
Title: Argument type mismatch
Post by: Bobboau on August 31, 2003, 01:12:13 am
cvs is working for the moment...