1waffle1
|
  |
| Joined: 16 Oct 2007 |
| Total Posts: 16381 |
|
|
| 27 Sep 2011 04:43 PM |
| Everything that used to work is broken. |
|
|
| Report Abuse |
|
|
Tenal
|
  |
| Joined: 15 May 2011 |
| Total Posts: 18684 |
|
| |
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
1waffle1
|
  |
| Joined: 16 Oct 2007 |
| Total Posts: 16381 |
|
|
| 27 Sep 2011 04:50 PM |
| No, they just added a new error. "Missing argument" then it crashes. |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
1waffle1
|
  |
| Joined: 16 Oct 2007 |
| Total Posts: 16381 |
|
|
| 27 Sep 2011 05:57 PM |
| I used nil for the second argument after I found that it didn't work. It used to work, but THEY DID THIS. THEY DID THIS!!! |
|
|
| Report Abuse |
|
|
Dresscode
|
  |
| Joined: 26 Aug 2010 |
| Total Posts: 151 |
|
| |
|
iamogggg
|
  |
| Joined: 09 Sep 2008 |
| Total Posts: 642 |
|
|
| 27 Sep 2011 07:36 PM |
| Using nil for the second argument worked for me. Maybe your Lua doesn't like you. |
|
|
| Report Abuse |
|
|
iamogggg
|
  |
| Joined: 09 Sep 2008 |
| Total Posts: 642 |
|
|
| 27 Sep 2011 07:38 PM |
| Oh. It did work for you. Ignore the last comment. =3. Why must you screw with us so? It used to default to nil.. Why you trollin' ROBLOX, why? |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 27 Sep 2011 07:39 PM |
function rayCast(pos, dir, ignore) return workspace:FindPartOnRay(Ray.new(pos, dir), ignore or Instance.new('Model')) end
Maybe? Models without descendants get removed (I think). |
|
|
| Report Abuse |
|
|
Rousie14
|
  |
| Joined: 20 Jan 2010 |
| Total Posts: 344 |
|
|
| 27 Sep 2011 07:45 PM |
| Yea they did some updates and the patched some scripts. Something of the uptades patched somethig in the Raycast script. Not sure what. |
|
|
| Report Abuse |
|
|
HotThoth
|
  |
 |
| Joined: 24 Aug 2010 |
| Total Posts: 1176 |
|
|
| 28 Sep 2011 05:30 PM |
Basically, when one of our functions expects 3 arguments, but was given fewer, Lua "guessed" at what the default values should be. And it always guessed nil. This confused a lot of users, because they might then get some nil-related error, or the function might just not work. It seemed bad. So now when an argument is left out, if we have a default argument coded in, we use that (instead of nil), but if there isn't a default argument, instead of just using nil and hoping stuff doesn't break or behave weirdly, it errors to let the user know it wants something there.
This means most functions will have better default behaviors, and our error messages will be better. However, if you were relying on skipping arguments so they'd be nil, now some of those functions will error out (instead of just passing undying shame to your family).
That's why just using "nil" as a second argument will fix things. In this particular case, that default makes sense, but just hasn't been added in yet (we have to add defaults for every one of our functions if we don't want them to throw this error X< ). So for now, nil ftw!
|
|
|
| Report Abuse |
|
|
Rousie14
|
  |
| Joined: 20 Jan 2010 |
| Total Posts: 344 |
|
|
| 28 Sep 2011 06:49 PM |
| Now that guy is smart ^, Thanks HotThoth. |
|
|
| Report Abuse |
|
|
1waffle1
|
  |
| Joined: 16 Oct 2007 |
| Total Posts: 16381 |
|
|
| 28 Sep 2011 08:03 PM |
| hottoth is better than sorcus. sorcus has to stay in c&g. |
|
|
| Report Abuse |
|
|