Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   CoD Multiplayer (http://forum.fulqrumpublishing.com/forumdisplay.php?f=192)
-   -   IL2ClodCommander Update (http://forum.fulqrumpublishing.com/showthread.php?t=30853)

wildwillie 04-01-2012 01:53 PM

IL2ClodCommander Update
 
1 Attachment(s)
Attached is the update to IL2ClodCommander.

It now includes setting mission objectives by Trigger (Target Area, Specific Targets) setup in the mission as well as general Object Types (Trucks, Tanks, ships, etc)

It also has a "Auto-Start" switch to start running missions when started.

Installation and setup is the same as prior release, but you should re-create the database if you are upgrading.

Sorry it took so long for me to release this.

Also included is the source code if you need to make modifications to suite your needs.

WildWillie

_79_dev 04-01-2012 02:01 PM

Thanks mate, will test it this evening...

5./JG27.Farber 04-01-2012 03:30 PM

Sounds great, thanks WW.

D_F_C 04-01-2012 06:07 PM

Great,
will test it asap

many THX for sharing it

wildwillie 04-01-2012 07:11 PM

Just a few comments about This release:

There is one known issue that I have not been able to fix yet and it relates to saving info to the database. The MySQL connector for C# does not allow multiple database readers (Unlike the Java version) and you will sometimes get a MySQL Exception in the log file. IL2ClodCommander will keep running, but some stats data is lost. If anyone knows of a setting in MySQL connector to allow multiple connections that would be great, otherwise the Database section will need to be re-written so statements are done serially.


There are two tables (gameOjbects, & gameMultiObjects) which hold info about objects used as targets, planes, etc. There are some entries in there already, and the program will try and automatically add objects that are not found and show up in the stats, but you should check the log file if you are getting an Object not found message. You will manually need to enter MultiGameObject, I hope to have it auto-create these for Custom-chiefs, but it is not done yet.

WildWillie

_79_dev 04-01-2012 11:10 PM

thats the result I`am getting for the moment:

PHP Code:

************** Exception Text **************
System.IO.FileNotFoundExceptionCould not load file or assembly 'MySql.Data, Version=6.4.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependenciesThe system cannot find the file specified.
File name'MySql.Data, Version=6.4.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'
   
at IL2CloDCommander.Form1.buttonDBConnection_Click(Object senderEventArgs e)
   
at System.Windows.Forms.Control.OnClick(EventArgs e)
   
at System.Windows.Forms.Button.OnClick(EventArgs e)
   
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   
at System.Windows.Forms.Control.WmMouseUp(MessagemMouseButtons buttonInt32 clicks)
   
at System.Windows.Forms.Control.WndProc(Messagem)
   
at System.Windows.Forms.ButtonBase.WndProc(Messagem)
   
at System.Windows.Forms.Button.WndProc(Messagem)
   
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Messagem)
   
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Messagem)
   
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWndInt32 msgIntPtr wparamIntPtr lparam)

WRNAssembly binding logging is turned OFF.
To enable assembly bind failure loggingset the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORDto 1.
Note
There is some performance penalty associated with assembly bind failure logging.
To turn this feature offremove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. 

Old IL2commander still works though on new database... any idea about this error???

_79_dev 04-02-2012 12:25 AM

Ok got this one sorted. Was missing Data folder and MySql.dll in main catalog there....

wildwillie 04-02-2012 01:18 PM

1 Attachment(s)
Oops -

Forgot the MySQL.Data.Dll in the download. thanks for pointing that out _79_Dev.

All - You can re-download from below, or just copy the Mysql.data.dll file from the previous download. The file needs to be placed with the IL2ClodCommander.exe file
WildWillie

melasuda 04-03-2012 12:21 PM

Hi, wildwillie

I have a problem.

When launch missión, apears this message.

Blue completed their planes objectives....., and the mission restarts automaticaly.

This mission works well on the first beta of the cod comander.

I'm thinking, my problem is on Triggers air spaw wroup. Is this possible?.

Thank you very much.

_79_dev 04-03-2012 01:09 PM

You have to set up victory conditions. Simply add your map and in missions section, then edit it before You launch server. I got options set for 50 planes and 50 pilots for each side. Works fine...

melasuda 04-04-2012 01:22 AM

thx _79_dev:-):-)

lotaria 04-04-2012 09:17 AM

Thanks a lot for this, wildewillie ! :grin:

_79_dev 04-04-2012 10:30 AM

Willie I got server running for 48 hours and I got no problem at all with commander. Anyway have a couple of issues about .php fo stats page:

1: cant get through cookies authorisation in certain files, have to remove this part of code form all files to go to admin section:

if (!$_COOKIE["auth"] == "1")
{
//If not Authorized Exit
exit;
}

2: for example I want to add pilot into squad and got error in java box:

Notice: Undefined index: squadronName in C:\xampp\htdocs\ClodStats\squadPilot.php on line 80

Notice: Undefined index: pilotName in C:\xampp\htdocs\ClodStats\squadPilot.php on line 81

Select a Squadron then enter the Pilot name to Add to it


Squadron Name:
None5./JG27No Pilots to associate


How to fix it?

wildwillie 04-04-2012 11:14 AM

_79_dev -

Did you update the adminLogin2.php file to reflect your web servers IP address. This was from FBDj and I probably have not documented it in IL2ClodCommander yet.

Anyhow the section of code:
Code:

            setcookie("auth", "1", 0, "/", "192.168.1.5", 0);
you need to change 192.168.1.5 to the IP address of your Web Server.

Also make sure that there is an entry in the adminUsers table in MySQL. There was a line in the clodstats database insert file :
Code:

INSERT INTO `adminUsers` (`lastName`, `firstName`, `username`, `password`) VALUES
( 'Default', 'Administrator', 'clodadmin', password('clodadmin'));

Which created the default login information (UN: clodadmin PW: clodadmin)

That is all you need to do. Unless there is something on your Web Server/Web browser that is preventing cookies. I'm not the best php coder, but this whole process is to have an admin section where only select people can access.


WildWillie

_79_dev 04-04-2012 01:30 PM

still can`t get throuh cookies autorisation, IP is set and admins and users exist in database so it must be something on my side....


after adding pilot into squadron got error message:
PHP Code:

Warningmysqli_free_result() expects parameter 1 to be mysqli_resultboolean given in C:\xampp\htdocs\ClodStats\squadPilot.php on line 62 

thats part of code for file, last line is 62
PHP Code:

 // Get Pilot ID
    
$sql "SELECT pilotID
              FROM pilots
             WHERE pilotName = '"
.$pilotName."' COLLATE utf8_bin";

    
$getResults mysqli_query($mysqliAdmin$sql) or die(mysqli_error($mysqliAdmin));
    if (
mysqli_num_rows($getResults) > 0)
    {
       while (
$row = @mysqli_fetch_array($getResults))
       {
        
$pilotID stripslashes($row["pilotID"]);
       }
        
mysqli_free_result($getResults);

        
$sql "UPDATE pilots
                   SET squadronID = 
$squadronID
                 WHERE pilotID= 
$pilotID";

        
$getResults mysqli_query($mysqliAdmin$sql) or die(mysqli_error($mysqliAdmin));
         
mysqli_free_result($getResults); 

and if I edit last line like that

mysqli_free_result($getResults)or die (mysql_error());

it disconnect from database...

wildwillie 04-04-2012 05:16 PM

I think that code section is broken and needs to be reviewed.

It is not too hard to just use the MySQL Workbench to set the squadrons.

Once connected you can right click on a table and select to 'Edit table data' which is easy enough to do.

Just add a new squadron in the squadron table and commit those changes.

Then select the rows from the squadron table to get the squadronId you want and edit the pilots table to set the squadronID for all pilots you want in that squadron.

WildWillie

_79_dev 04-04-2012 07:02 PM

I am not php programer my self only started to learn few weeks ago... Your database and webstats page is like learning book for me at the moment. Anyway most of theme error messages are just messages and I learned That they can be not visisible by simply turning off error reports in .php config file for web server. Code for webstats it self is maybe too old for new browsers and php version, but still works great. I can edit tables of database manually my self by using just MyPhpAdmin wich I use so there is no problem there. I was just curious about automatisation of admin options here... Ok nevermind, thanks for clearing out everything, and for all work on Commander, will try to update bugs, if any... server is running no problems so far.

D_F_C 04-11-2012 07:19 PM

Hello,

i am working to fill the object and multiobject databasetables for the Clodcommander, when i am ready i want to share it. It will have different points for the objects than the original one, but you are able to setup it by your own in the Clodcommander if you want. The object databasetable has now over 200 entries, and at the moment i fill the multiobject databasetable.

Hope it helps WildWillie a little bit.

5./JG27.Farber 04-11-2012 08:36 PM

Is there any chance the stats will record AI kill/ground targets?

wildwillie 04-12-2012 11:58 PM

Yes stats are kept for all destroyed objects and the attacker, be it AI, Player, or another Ground Object.

Look into the aiEvents table.

WildWillie

D_F_C 04-16-2012 06:20 PM

1 Attachment(s)
Here are the databasetables i filled with datas.

-- Attention -- Deletes the Clodstats gameobjects and multigameobjects tables and creates new tables with the new datas.
-- Attention -- Different scoring to the original datas are in the database.

Hope there are no errors in. Please test and give a little reply if it works. I tested it on my local system and it seems to run well.

wildwillie 04-16-2012 08:07 PM

Initial glance everything looks OK.

I'll check it out more later this week.

Thanks for the work

Willie

_79_dev 04-16-2012 08:28 PM

Works with no errors so far..... Thank You D_F_C

5./JG27.Farber 04-16-2012 09:02 PM

Thanks WW and DFC.

S!

_79_dev 04-17-2012 12:23 PM

got the database error for mission and plane details solved half way there...

first of all add objectiveType column into missions table in database..that fixed mission details

second: in file aircraftdetails.php change plane columns into planeName anywhere script is asking for that value from database.

still working on weapons :)

D_F_C 04-19-2012 03:16 PM

Quote:

Originally Posted by wildwillie (Post 409938)
Initial glance everything looks OK.

I'll check it out more later this week.

Thanks for the work

Willie

If you check it and something is missing please report here, i hope i can add it as soon as possible to the database. But at the moment i cant can tell you if some objects are missing because there are no more missing entries in the logfile of Clodcommander, so far as i saw it.

chn6 08-15-2012 12:58 PM

Thx for Great work, but my il2ClodCommander can't contrl server.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
( 2012-8-15 20:23:11 ) Form1.textBoxMissionCompleteTimer_TextChanged - Mission Complete Timer changed new value: (10)
( 2012-8-15 20:23:11 ) IL2ClodCommander Started
( 2012-8-15 20:23:11 ) DBConnect.getGameObjects - Loaded (241) Game Objects
( 2012-8-15 20:23:11 ) DBConnect.getGameMultiObjects - Loaded (36) Multi Game Objects
( 2012-8-15 20:23:11 ) ServerConnection.OnConsoleDataReceived - Exception: Since a thread exit or an application request, has given up the I / O operations
( 2012-8-15 20:23:11 ) *** Mission Processor Started by User ***
( 2012-8-15 20:23:11 ) MissionController.getNextMission - Next Mission to Run: (Channel.mis)
( 2012-8-15 20:23:11 ) MissionProcessor.runMissions - Mission Cycle Index Reset to 0
( 2012-8-15 20:23:11 ) MissionProcessor.runMissions - Loading Mission (Channel.mis)
( 2012-8-15 20:23:11 ) MissionLoadController.loadMissionData - Loaded (51) Static, (0) Chiefs, & (0) Chief NPC Objects
( 2012-8-15 20:23:11 ) ***** Mission Objectives ****
( 2012-8-15 20:23:11 ) **** End Mission Objectives ****
( 2012-8-15 20:23:11 ) MissionController.startMission - Unhandled Exception: System.IO.IOException: The operation is not allowed on non-connected sockets.
at System.Net.Sockets.NetworkStream.InitNetworkStream (Socket socket, FileAccess Access)
at System.Net.Sockets.NetworkStream..ctor(Socket socket)
at IL2CloDCommander.ServerConsoleConnection.SendConso leMessage(String msg)
at IL2CloDCommander.Controller.MissionController.star tMission(MissionCycle mission)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I check everything carefully
confs.ini
IL2CloDCommanderConfig.ini
MIssion Script

and use Online_Map for testing.

My start-up order is:
1. il2cod Server
2. cmd for difficulty setting only, no mission load and start
3. il2ClodCommander

can you help me?

159BAG_Civis 11-02-2012 12:38 PM

Quote:

INSERT INTO `adminUsers` ( `lastName` , `firstName` , `username` , `password` )
VALUES (

'Default', 'Administrator', 'clodadmin', PASSWORD( 'clodadmin' )
);

answer MySQL:

#1146 - Table 'clodstats.adminusers' doesn't exist
I try to adjust connection to MySQL and to me gives out a mistake in attempt to make sql-request of the table clodstats Database Insert.sql
What's the problem?

D_F_C 11-03-2012 04:09 PM

chn6

Did you copy IL2ClodCommanderStats.dll to game folder ?

D_F_C 11-03-2012 04:24 PM

Quote:

Originally Posted by 159BAG_Civis (Post 476551)
I try to adjust connection to MySQL and to me gives out a mistake in attempt to make sql-request of the table clodstats Database Insert.sql
What's the problem?

INSERT INTO `adminUsers` ( `lastName` , `firstName` , `username` , `password` )
VALUES (

'Default', 'Administrator', 'clodadmin', PASSWORD( 'clodadmin' )
);

answer MySQL:

#1146 - Table 'clodstats.adminusers' doesn't exist

---------------------------------------------------------------------
Insert = adminUsers

table = adminusers

if you use Linux the names must be exact the same:

Insert = adminUsers

table = adminUsers

maybee this is the problem.

No problems with installing the Database here by my side. I installed it on Win.

_79_dev 11-04-2012 01:07 PM

Quote:

Originally Posted by 159BAG_Civis (Post 476551)
I try to adjust connection to MySQL and to me gives out a mistake in attempt to make sql-request of the table clodstats Database Insert.sql
What's the problem?

I cant see which database are u trying to use:

PHP Code:

INSERT INTO `adminUsers` ( `lastName` , `firstName` , `username` , `password` ) 
VALUES (

'Default''Administrator''clodadmin'PASSWORD'clodadmin' )
);

answer MySQL

#1146 - Table 'clodstats.adminusers' doesn't exist 

Have u got: use "your_dabase_name" at the beginning of file?

melasuda 11-16-2012 03:35 PM

Hi first sorry for refloting the post, and for my English

this is my cuestion.

how can i set Target Area to red or blue army?.

I create oner mission, but i can not setup on Comander destroy area to red or blue.

I only can setup to destroy a create group (tjis work good), but no a multiple staticks objet to destroy

_79_dev 04-15-2013 01:39 AM

Quote:

Originally Posted by wildwillie (Post 404823)
Just a few comments about This release:

There is one known issue that I have not been able to fix yet and it relates to saving info to the database. The MySQL connector for C# does not allow multiple database readers (Unlike the Java version) and you will sometimes get a MySQL Exception in the log file. IL2ClodCommander will keep running, but some stats data is lost. If anyone knows of a setting in MySQL connector to allow multiple connections that would be great, otherwise the Database section will need to be re-written so statements are done serially.



WildWillie


@I see you're using a DataReader. You can only have 1 DataReader open at a time per connection. using blocks come in handy for those:

using( var reader = myCommand.ExecuteReader() ) {
while (reader.Read()) {
// get values, do stuff
}
}// reader gets closed

You only hint at it in the code in your question (currently), but it's possible that is part of your problem. You haven't shown how you're using the DataReader, so I'm not certain. Just a possibility.@

MOG_Hammer 06-24-2013 10:12 AM

Nice to you to have provided the source files with the cod controller application.

And also it is nice to have choosen C# as a prefered language. You seem to choose your language based on what the game actually uses, like Java for 1946, C# for CoD, which will make life much easier for people that would like to modify your application, since it uses the same language as the mission scripts (which is very fun to learn actually).

C# is a much easier read than Java IMHO.

Mikmak 01-12-2014 03:53 PM

I try to use IL2 CLoD Commander and when i click on "Start Mission" button, i got the following message in the server terminal and the mission isn't loaded, what is wrong in my procedure ?

http://i55.servimg.com/u/f55/17/86/51/08/server11.jpg

If i use the command "missLoad missions/OnLine_Map.mis" directly in the server terminal, everthing works fine.


All times are GMT. The time now is 03:59 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.