Jump to content
Sign in to follow this  
dachevs

better way to script game

Recommended Posts

I think it would be better to have C++ as one of the languages for scripting its so much easier and faster, i know u can do C++ but u cant do it for actual scripting but u can make cpp files.

Share this post


Link to post
Share on other sites
I think it would be better to have C++ as one of the languages for scripting its so much easier and faster, i know u can do C++ but u cant do it for actual scripting but u can make cpp files.

That sort of defeats the purpose of a scripting language, which is supposed to be easier for designers and mission makers to use.

Then again I would love to be able to use an object oriented scripting language, though I'm not sure how well that would work.

Share this post


Link to post
Share on other sites

This has to be a joke  biggrin_o.gif

It is a joke...?  huh.gif

It isn't?!  crazy_o.gif

I'm not sorry for laughing at this suggestion. I honestly think that C++ is not at all suitable for the purpose.

There is a C Scripting Language CSL, but that is not at all the same thing as using C or C++.  And it's GPL so it's surely not an option for BIS.

Share this post


Link to post
Share on other sites

Considering how much work they may have done on their dynamic campaign/campaigns, I think it's a little late for a whole new scripting system.

Think of all the poor designers at BIS and BIA who suddenly have to learn C++ crazy_o.gif

tounge2.gif

A lot of old scripts and mods can more easily be ported over with the same old scripting system.

Share this post


Link to post
Share on other sites

no one said the whole system had to be made of C++ but just because someone gives a suggestion doesn't mean u have to "flame" him, just a simple "I don't think this is a good idea and explain without the rudeness" tounge2.gif

I personally consider LUA to be my favorite Scripting Language

Share this post


Link to post
Share on other sites

Rather than changing scripting languages, one thing I'd probably go crazy over would be the ability to define actual C++ functions in configs that allowed for the use of more polymorphism.

For example, a reload method (with not so much actual C++):

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class M16: Weapon {

  ...

  // When reload action is performed, the virtual function

  // reload(void) is invoked on the current weapon.

  // Each derived class of Weapon contains a reload method.

  bool reload(void) {

     // reload algorithm in C++

     ...

     return true;

  }

  ...

};

Ideally every object (C++ object) could be programmed strictly in C++ and possibilities would be endless, but that would redesign the entire game engine and leave nothing actually hard-coded.

Realistically, just having certain abstract methods (perhaps sort of like event handlers only more object oriented) with some ability to write functions for different object classes would still be awesome and is more within the realm of feasibility.

Share this post


Link to post
Share on other sites

id just like it to so u can be able to use C++ functions, I work for a Project and its for an MMO for SystemMessages they define it using

player->sendSystemMessage("")

it works much easier than hints but it works the same way, beacuse player-> is similar to _player just easier on programmers that know C++ like for me its a bit hard to learn another language when i already know afew of them hehe. Like you said at least be able to use other Programming Language functions from C++ Lua etc to make the current Scripting System more flexible

Share this post


Link to post
Share on other sites

I have know idea what everyone is talking about here. rofl.gif

Share this post


Link to post
Share on other sites

The ArmA configuration files are not C++.

I now understand that that is what you meant in your first post by "i know u can do C++".

The style of the configuration files is C++-ish though.

Some sort of scripting formulas can be inserted into configuration files.

But it really isn't C++. It's data that is handled by C++.

Suggesting C++ as a "scripting" language for a game is far from rational.

C++ is NOT easier and faster (to write). You got that seriously wrong about C++. Also it is not an interpreted language. I don't know how much you have experience programming in C++ but what you said hints that it is very little or not at all. Perhaps you should explain better what you actually want, instead of just saying "I want C++ scripting".

id just like it to so u can be able to use C++ functions

hmmm what do you think you are doing when you use ArmA scripting language? Maybe you mean that things should look more object-oriented in the scripting language level?

Share this post


Link to post
Share on other sites
I have know idea what everyone is talking about here. rofl.gif

If you have nothing constructive to add, then don't post at all.

Spamming the forums to increase your postcount doesn't work here.

A 48h post restriction might give you the chance to get familiar with our forum rules.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×