justinccdev / EventRecordingModule

This module will record various events that take place on a simulator (e.g. avatar entering a region) to some other data source for later analysis. Currently under initial development.
BSD 3-Clause "New" or "Revised" License
1 stars 5 forks source link

Event Recording Module records grid name incorrectly #3

Open stephenenochian opened 9 years ago

stephenenochian commented 9 years ago

If I were to clone an existing grid and rename it, how would I rename the grid name in the Event Recording Module? I've tried changing the grid ID in the Event Recorder information in OpenSim.ini and restarting robust and all sims, but it still uses the old grid name when recording.

justincc commented 9 years ago

There should be a log line saying

[EVENT RECORDER]: GridID set to some-grid-id

What does grid-id say when you change it?

stephenenochian commented 9 years ago

Here is what we have in OpenSim.ini

[EventRecorder] ; Can be either "OpenSimLog" (to record to OpenSim.log) or "MySQL" (to record to MySQL) Enabled = true Recorder = MySQL

Which log should we be looking in for your reference?

Thanks!

From: Justin Clark-Casey [mailto:notifications@github.com] Sent: Wednesday, 25 February, 2015 14:09 To: justincc/EventRecordingModule Cc: Enochian, Stephen (enochisg) Subject: Re: [EventRecordingModule] Event Recording Module records grid name incorrectly (#3)

There should be a log line saying

[EVENT RECORDER]: GridID set to

What does grid-id say when you change it?

— Reply to this email directly or view it on GitHubhttps://github.com/justincc/EventRecordingModule/issues/3#issuecomment-76032847.

justincc commented 9 years ago

OpenSim.log

stephenenochian commented 9 years ago

I’ve checked through the OpenSim.log file and can find no record of Event Recorder or GridID anywhere within it.

However it does appear that EventRecordingModule is present:

2015-02-26 09:14:08,700 INFO - OpenSim.ApplicationPlugins.RegionModulesController.RegionModulesControllerPlugin [REGIONMODULES]: From plugin EventRecordingModule, (version 0.1), loaded 1 modules, 1 shared, 0 non-shared 0 unknown

From: Justin Clark-Casey [mailto:notifications@github.com] Sent: Wednesday, 25 February, 2015 14:52 To: justincc/EventRecordingModule Cc: Enochian, Stephen (enochisg) Subject: Re: [EventRecordingModule] Event Recording Module records grid name incorrectly (#3)

OpenSim.log

— Reply to this email directly or view it on GitHubhttps://github.com/justincc/EventRecordingModule/issues/3#issuecomment-76041738.

justincc commented 9 years ago

Although the module is present that doesn't guarantee it is active.

What is your log level set to? The message only shows up at debug level.

Alternatively, could you post the output of the console command "config save EventRecorder"? This will show the actually loaded config after OpenSimulator has parsed all it's various config files.

stephenenochian commented 9 years ago

Log level should be at debug level. Where would the results of "config save EventRecorder" end up?

justincc commented 9 years ago

Sorry, got the command a bit wrong. It should have been

config save some-filesystem-path

so the save will have ended up in a file named EventRecorder in bin

You will only want to post the [EventRecorder] section since other parts may contain sensitive data like database passwords.

stephenenochian commented 9 years ago

[EventRecorder] Enabled = true Recorder = MySQL ConnectionString = Data Source=[address];Database=[db];User Id=[user];Password=[pw]; GridID = [correctID]

It has the correct GridID, but is still saving to the MySQL database as the old GridID

justincc commented 9 years ago

Ok, I'm not sure what is happening. If you look through the code here you'll see that the grid ID is read in once and then passed to each event for recording.

If you're working with the air force lab then check that your version of code actually matches the one here. In a development stage I believe they had hardcoded the grid ID in a variation of this module.

stephenenochian commented 9 years ago

Is there a way I can compare code post-compiling? It would appear that the code pre-compiling is missing.

Of note, we're using the osimctrl management system

justincc commented 9 years ago

Now without a prohibitive amount of tricky de-compiling work.

I believe the code versions were very close. I would suggest compiling this module and then see if it works just fine as a drop in replacement for the existing one.