• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

I have a doubt with TFS 1.0

beenii

Well-Known Member
Joined
Jul 26, 2010
Messages
586
Solutions
1
Reaction score
58
I've seen scripts, in TFS 1.0 is very different to TFS 0.4, I just try test a script of TFS 0.4 and worked fine in tfs 1.0.

that means?
I can program in tfs 1.0 as you would in tfs 0.4?
that's what changed between these two versions?
 
I don't know that much, however, you shouldn't base your assumptions because of one script.
I would assume that it's different and you just got lucky with the script you tried out.
 
The functions are mostly ported with compat but there are major differences in the sources. A lot of unstable functions was removed.
The biggest difference, that has been more developed in 1.1 and 1.2 is that creature data (cid) has been reworked to read the different types (i.e. creature, player, npc). most functions are also written differently, for example: doSendTextMessage(player, msgtype, msg) -> player:sendTextMessage(msgtype, msg)
There are other major differences as well. I'd suggest to change the script even if it still works. Some things might seem to work when they might still be unstable.
 
The difference between the 2 is instead of cid being passed to an object where an instance of the object is referenced or created is that you are directly accessing the object itself (aka the userdata).

However there is no stability issue in using the compatibility functions & you can even create your own if that is the way you would like to write out your scripts, there is no wrong way to code, the only thing wrong here is getting the wrong information.
 
Back
Top