Marriage Failure

Got something on your mind about the project? This is the correct place for that.
Forum rules
This forum is for feature requests, content changes additions, anything not a Bug in the software.
Please report all bugs on the Support Forums
User avatar
Rotonen
TMW Adviser
TMW Adviser
Posts: 3154
Joined: 08 Sep 2004, 20:48
Location: Espoo, Finland

Re: Marriage Failure

Post by Rotonen » 19 Feb 2009, 05:26

For gameworld configurability aspects, we should keep it scripted.

Each admin / content team can run their server's marriage policy however they want to.

This topic is turning more into how we would like for the official content to handle the issue. For this, as pointed towards by Crush, we would actually need to start to develop the gameworld and especially the cultures present in the world.
This message used to be meaningful.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Re: Marriage Failure

Post by Crush » 19 Feb 2009, 05:27

zick wrote:Question: Would compiling something like this into the server be faster as opposed to if it were script based? I am asking not to be a jerk but because I don't know.
Scripts are generally slower than pure C++ code, but depending on how often the script function is called this might not really matter.

LUA is a very lightweight and performant scripting language, but the calls from LUA to C++ and from C++ to LUA are quite expensive, especially when a lot of data is passed (you can not pass data by-reference between LUA and C++). When a cross-language call is only done every few seconds per player it will not have a notable impact on the overall hardware load. But when we have a few hundred calls every game tick it might be wiser to implement the feature in C++.
I remember from my Java classes in school that the teacher said since Java was an interpreted programming language (script) that it was slower than C++ which was pure machine language.
Your school teacher was wrong about Java being an interpreted language. Java sourcecode is compiled into binary bytecode before it is executed by the virtual machine. The execution of the bytecode is (usually) not quite but almost as fast as machine code compiled from C++ sourcecode. But Java also has the ability to optimize the bytecode at runtime for the CPU of the system it runs on (Just-In-Time compilation) which is an advantage over software which is distributed as already compiled machine code and thus can not be optimized for the system of the end-user.

The downside of the virtual machine concept is load time and memory consumption of small programs. Regardless of the program you always have to load the big JavaVM into system memory when you want to run it.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
crazy
Peon
Peon
Posts: 43
Joined: 05 Aug 2008, 15:52

Re: Marriage Failure

Post by crazy » 19 Feb 2009, 08:23

Crush wrote:There are different cultures in the world which have different views on the role of marriage.


what was the purpose of mariege in tmw. i mean why it is impimented and if there are plans to make any improvments-more usage to the mariege. ( i ask cause if they are before people say it's opinion should take under notice theese things )


By the way i am not against that someone could marrie more than 1 people at the same time ( although i will not do it )
Post Reply