Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » For those people who don't know C++
For those people who don't know C++ [message #267764] Thu, 21 June 2007 10:32 Go to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
For those people who don't know c++, i have something comming for you. It's an SSGM plugin, that parses Lua scripting files.

This is what the Lua file looks like. If you want more events just ask.
function OnChat(pID, Type, Message)
end

function OnPlayerJoin(pID, Nick)	
end

function OnPlayerLeave(pID)
end

function OnHostMessage(ID, Type, Message)
end

function OnLevelLoaded()
end

function OnLevelEnded()
end

function OnConsoleOutput(Message)
end

function OnDDERecived(Message)
end

function OnObjectCreate(Object)
end

function OnObjectCreate(Object)
end

function <preset>_OnCreated(Object)
end

function <preset>_OnDestroyed(Object)
end

function <preset>_OnKilled(Object, shooter)
end

function <preset>_OnDamaged(Object, shooter, amount)
end

function <preset>_OnDTimer_Expired(Object)
end

function <preset>_OnEntered(Object)
end

function <preset>_OnExit(Object)
end



for the last part, repace <preset> with a valid preset and it will act like a script. You have access to ALL the engine calls too. It will also have purchase hooks, but they are not done right now.

For those who don't know what Lua is, http://www.google.co.uk should help you. Lua is a scripting language, it's syntax seems to be a hybrid of VB, C++ and BASIC. It is very easy to learn and is very powerful (for a scripting language).

I am announcing this early, to get some ideas. So if you want something to go into this, post in this thread. I will consider all, and will do what i can. (return 0 from the chat function to stop the messages going to the clients.
Re: For those people who don't know C++ [message #267773 is a reply to message #267764] Thu, 21 June 2007 10:46 Go to previous messageGo to next message
Jonty is currently offline  Jonty
Messages: 538
Registered: June 2006
Location: Chesterfield, England
Karma: 0
Colonel
Viva la Resistance!
Ooh, maybe this is finally a programming language that doesn't bore me to hell. Very Happy
Re: For those people who don't know C++ [message #267780 is a reply to message #267764] Thu, 21 June 2007 11:01 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

Probably not then, you'll still have to learn it and use it to achieve something. The only difference is that it's quicker and easier to learn, but it isn't magic.

Wasn't some project like this started before? RenLUA or soemthing? Anyway, I think it is a good project for those who wish not to spend too much time on coding scripts. I'll stick with C++ though. Wink

Why are you announcing this so soon though? It's what mostly bothered me about various other products, not only yours. People will be waiting for this, bugging you when it's done, complaining if it takes longer, doubting it will happen, cry when it is cancelled (well, something like that Wink ). It simply gives so many people, me included, a feeling of "yet another unfinished project", at least until it's done. Simply hide, then release your unknown or hardly known project when it's done. Makes it look much better imo.
If you need suggestions, talk in private with some people, or ask for them after the first release or when a first release is almost done, you'll probably get more and better suggestions then.


BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Re: For those people who don't know C++ [message #267784 is a reply to message #267764] Thu, 21 June 2007 11:10 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
All it is a plain text file, too. So no compilers, just wordpad or a text editor of your choice. Big Ups There a few things you wouldn't be able to do with this that you can do by editing the scripts.dll source. Most things, though are easy. It wont use the GameObject *, it just uses the object ID.

I don't know how powerful Lua is exactly, but i think you can do a lot of things with it. I think you can even mess with Winsock, File IO, stuff like that. I only really found out about Lua today so i haven't learned it yet.
Re: For those people who don't know C++ [message #267787 is a reply to message #267764] Thu, 21 June 2007 11:12 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

Thought it did not post this after the forums didn't respond (backups probably).

BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/

[Updated on: Thu, 21 June 2007 11:12]

Report message to a moderator

Re: For those people who don't know C++ [message #267789 is a reply to message #267764] Thu, 21 June 2007 11:14 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
I've stopped even talking about my projects, but this one. I want ideas for it. This is new to me and all i can do is provide a base for people to program. I can do the C++ programming for them, but i need the ideas. Plus, it's not really a big project and should be finished pretty quickly. i already i have it working.
Re: For those people who don't know C++ [message #267825 is a reply to message #267764] Thu, 21 June 2007 12:53 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
I decided, because of the sheer amount of engine calls there are. I am going to do a select few, that i found useful. I'll make sure i document the ones i did do, though.
Re: For those people who don't know C++ [message #267848 is a reply to message #267764] Thu, 21 June 2007 14:10 Go to previous messageGo to next message
Whitedragon is currently offline  Whitedragon
Messages: 832
Registered: February 2003
Location: California
Karma: 1
Colonel
I ported vlokt's RenLUA to an SSGM plugin a while ago. Do you want it? Lots of engine calls and the entire script interface is already made so it will give you a head start.

Black-Cell.net
Network Administrator (2003 - )

DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )

Dragonade, Renegade's first server side modification
Lead coder (2005 - )

[Updated on: Thu, 21 June 2007 14:16]

Report message to a moderator

Re: For those people who don't know C++ [message #267860 is a reply to message #267764] Thu, 21 June 2007 14:29 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Yeah, sure. Thanks.
Re: For those people who don't know C++ [message #267887 is a reply to message #267764] Thu, 21 June 2007 17:10 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Here's a list of functions that will be in the end plugin.

Toggle Spoiler


I will probably release this without all the functions, because they are going to take some time to do.
Re: For those people who don't know C++ [message #267963 is a reply to message #267764] Fri, 22 June 2007 00:19 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

Which script commands will this support (i.e. the commands-> stuff)?


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: For those people who don't know C++ [message #268085 is a reply to message #267963] Fri, 22 June 2007 07:02 Go to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
jonwil wrote on Fri, 22 June 2007 08:19

Which script commands will this support (i.e. the commands-> stuff)?



Pretty much most, I'm still experimenting with lua to see if i can keep it in a class. EG: Commands:Create_Object ...
If not, i'll just wrap each one like i have done the rest.

I have actully done every function that i listed, already.
Previous Topic: SSGM, previously SSAOW, Version 2.0
Next Topic: Key
Goto Forum:
  


Current Time: Sat Dec 21 07:37:36 MST 2024

Total time taken to generate the page: 0.00998 seconds