[Script] TC Stock Exchange "The Evolution of a Financial Revolution" v4 Full Release.

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

Post by mark_a_condren »

Joubarbe

By any chance are you running windows 7?

If you are then when you copied the stage 2 files over some of the files may not have updated properly by the sounds of it.

The Company / Corporation indexes should update about every 10 seconds if the menu is open and about every 1 to 2 minutes if the menu is closed. If this isn't happening then the Dynamic menu script is not running.

If you are running win 7 then i would recommend removing the script totally with plugin manager. Then check the TC scripts folder and delete any files for stock exchange in there. Then look under compatability files and delete any files for stock exchange in there and then reinstall stock exchange stage 2.

If not win 7, then do as above just skip the compatabilty files bit.

Let me know how you get on please.

MarCon
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Post by Joubarbe »

How can I see what files in the script folder are related to the stock exchange script ?

And what do you mean by "look under compatibility files" (I'm running Win 7)


EDIT : I deleted all plugin.mc* and setup.mc* files, uninstall via the plugin manager ; reinstall, but nothing happens :(
Maybe something with the "compatibility files" which I didn't really understand.
Last edited by Joubarbe on Thu, 29. Jul 10, 17:56, edited 1 time in total.
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

Post by mark_a_condren »

Ok, now we're getting somewhere.

win 7 can cause problems when you replace one file with another with the same name, it keeps and uses the older version.

All stock exchange files start with 'plugin.mc.st.ex. ~' and the setup script is 'setup.mc.stock.exchange'

To see the compatability files, open the scripts folder in TC directory. At the top of the files view window, in the middle i think, is 'view compatability files', select it and it will show any files hiding in there. If they belong to stock exchange delete them.

The open the 't' folder and look for 9740.L044 and delete it and do the same compatabilities file check in there. If you find 9740.L044 in compatability files delete it as well.

Then unistall stock exchange from plugin manage. then reinstall stage 2. this should update all the files correctly.

MarCon
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Post by Joubarbe »

How can Windows 7 knows any compatibility files of X3... ? If you mean that I have to show hidden files, then it's done, but nothing shown.

Below : all my scripts and mods

[ external image ][/img]


EDIT : hmm I search on google "compatibility files" and I don't have that one in my menu (like there : http://www.hanselman.com/blog/VistasSho ... ation.aspx)
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

Post by mark_a_condren »

I think the link you provided is a pic from vista, win 7 i think is more over the top of the files view window. I'm sure it will be there somewhere, and there will be files in there.

TC is using the old files and not the new ones you installed.

windows 7 keeps a copy of files that are made on a win xp machine in there. it doesn't matter that they are TC files and win 7 doesn't know if they are compatable with TC or not and it make no difference, old style files it stores seperatly apparently. it's a whole nasty bag of worms.

MarCon
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Post by Joubarbe »

Uhh, I think if there was something, I'd see it. What you say is very strange... I deleted files, installed new ones, Windows 7 will not hide files from me and makes them "dominant". Or there is something in temp files somewhere else, that your scripts use.

EDIT : and I read that if there is no compatibility files button, then there are no files to show.
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

Post by mark_a_condren »

I'm not saying your wrong or anyting like that, sorry if it came across like i was. I'm just trying to find out why the files were not updated and help you find a solution.

My scripts don't use any temp files or anything. No other lib files, only what starts with 'plugin.mc.st.ex. ~'

But, the reason its not working is cos the files to run the dynamic menu were not updated correctly, and thats NOT through anything you did wrong. I have not other ideas at the moment as to how i can help you, sorry.

MarCon
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Post by Joubarbe »

I didn't mean to be rude :) Thanks for your help

Still, there is a strange thing : the "Welcome" message scrolling from the right to the left would not move if the "menu update" file were broken, don't you think ?
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

Post by mark_a_condren »

The welcome message uses a different file to run the text. There are 4 dynamic menus running into the menu you see. 1 runs the welcome message, another the player credits at the top that auto updates, another the Corperations updates and the other runs the Company updates. It is strange that that is working and the others not though.

Can you post a screenshot of the menu please, and at the top of the first menu in the descriptions area is the file version you have, can you tell me what they are. They should look something like 'Stage 1 Release v1 + Stage 2 Release v1' or similar.

EDIT:
Have the Index numbers changed from white to colored text? and are you getting the trend indicators ^ v ?

EDIT2:
I don't know if this could happen, but have you opened and closed plugin manager sinse you installed the zip version of stage 2? I wonder if plugin manager could have rebuilt the files list from what it thought should be there?

My next recommendation would be to remove stock exchange with plugin manager, and download and install stage 2 as a fresh SPK installation.

Better yet would be to intall stage 3 beta and when its installed set the options menu with anything, let it close. Then open options again, goto uninstall, select remove stock exchange, wait for the subtitle that its done, about 30 seconds. Save game then reload save. This will clear all global variables and arrays and start stock exchange fresh as a complete new install.

MarCon
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Post by Joubarbe »

[ external image ]

[ external image ]

As you can see, it shows "Stage 1 Release v2 + Stage 2 Release v1"

Index are colored but they don't change. So no ^ v.
Same with commodities indexes.
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Post by Joubarbe »

I got a question : where do the script configuration files are stored ? Inside their own files ?
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

Post by mark_a_condren »

The configuration information is stored in a global variable. The script files call the global variable to get their config information.

I've just been going through the script files to see if i could find where there could be a problem and as yet not found anything. I even checked to see if the fact your using a different language version of the game could be it if i did something that could be broken the way.

I'm not having much luck fixing this one.

The fact that the index numbers are colored shows that it ran at some stage or they would still be white. The trend line should be showing at least some up / down arrows somewhere but its not.

I'm really sorry for these hassles you are having.

MarCon
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

Post by mark_a_condren »

Joubarbe

Can you try this for me please.

Open options menu, goto uninstall, select 'i want to upgrade'. Wait for the subtitle saying stock exchange is ready to be upgraded. Then open stock exchange again, set options, and open corporation index and see if the issue has been resolved.

I've just wiped all my stock exchange files, loaded v1 spk, then copied zip v2 over top and run game and saved. opened plugin manager and closed it tthen rerun the game and the menu was updating correctly, so i dont think its an issue with plugin manager overwriting new files with older ones. but i'll do some more testing in this area.

MarCon


MarCon
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Post by Joubarbe »

Only one value has updated (^), other indexes are now in white.

Played 10 minutes (real time)
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

Post by mark_a_condren »

Joubarbe wrote:Only one value has updated (^), other indexes are now in white.

Played 10 minutes (real time)
Thats not good.

There is a real problem there somewhere, i just don't know where atm.
It should have changed nearly all if not all of the index numbers to colored numbers in 10 mins, 1 in 10 mins is way way way to slow.

I said that the menu is updated every 2 mins when menu is not open, sorry it is actually every 10 seconds, and between 2 and 7 seconds if menu is open. So in 10 mins there should have been a lot of updating happening. (I got my numbers mixed up with the part of the script i've been working on tonight before this happened)

I'll just have to keep looking into this and see if i can come up with problem and a fix. Aside from that, atm i don't know what to tell you except try updating to stage 3 beta, it has some code refinements in it that happened when Banks was introduced.

MarCon
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Post by Joubarbe »

I'll try that, thx :)

EDIT : not working.
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Post by Joubarbe »

Are you sure this can't be an incompatibility problem with my other scripts ?

The Interest Level is updating correctly (about every 10 sec)...
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

Post by mark_a_condren »

Joubarbe wrote:Are you sure this can't be an incompatibility problem with my other scripts ?

The Interest Level is updating correctly (about every 10 sec)...
Thanks for the update and updating to new version, now gives me more infor to go on.

Am i sure it's not an incompatability, no, do i think thats the problem, also no.

Sorry i stopped replying, it was 5 am here and i had to get some sleep.

I'll look into this further tonight as soon as i get a chance. It seems the problem is with only 2 script files, the 2 that update the Corporate and Company Indexes. Seems they are running then cutting out.

I'll keep you posted as to what i find.

MarCon
Alexfighter
Posts: 37
Joined: Wed, 22. Aug 07, 01:50

Post by Alexfighter »

One question. Actually a hint request:

How fast and how far should I expect a commodity or share price go up and down? What would be an average trend?

For example, if I buy at 96 and going down V, can I expect it to go down to 80, or 70 or even more, or just 90, and in how much time?

I understand that this depend of the item I'm trading, and that you'll surely have implemented very good algorythms to not make this too easy, but do you have any advice for how to deal with this? I'm sure that even with some insightful comments from the programmer, playing with this will be difficult enough.

Thanks.
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

Post by mark_a_condren »

Alexfighter

Well i've had some requests before, but not a hint request, i like it. :wink:

With Commodities, they are based on your actual in game stations ware in cargobay and the resources they require. So each ware will be different and different for everyone and from game to game.

But the more expensive wares, Lasers and high end shields will sit on 100 for some time, but if a ship comes and buys the only 8 in stock for example, the index will go from 100 to 0 just like that. these wares are slower moving however. cheaper wares will go up and down a lot quicker, but not by as much. Ecells for example have to change about 11 index points before the share value changes by 1 credit. So dearer moves more but not so often while cheaoer movers quicker but not so much.

A mixed portfolio of high, mid ,and cheap wares will give you the best overall averge return. It's like buying the actual wares from the station, find a ware thats in demand and if there is quite a bit of it at some time, buy, it will move soon enough.

If you sit and watch and use it a bit yu will start to notice trends, this when yu will start to make some good money.

Don't forget, you can help or hinder the stock exchange by were you build stations as well. If there is a oversupply of something that sits and doesnt move, build a station nearby that uses it. Watch to share price start to move as your station uses the wares and thus effects the stock exchange.

Happy trading and may profit come your way my friend.

MarCon

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”