AI Competetors : Removal Update

The place to discuss scripting and game modifications for X³: Reunion.

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

User avatar
arcana75
Posts: 2165
Joined: Tue, 2. Dec 03, 09:28
x3tc

Post by arcana75 »

LV, can you give a rough guide on how I can restrict the number of names to use, and the naming convention of the spawned ships?

I would like to change the names to people I know and the script uses only those names, as well as change the way the ships are named. Currently the ships are named exactly as the name of the competitor which is kinda ugly.

TIA!
Star_Raider15
Posts: 1212
Joined: Thu, 15. Jun 06, 08:08
x3

Post by Star_Raider15 »

one question wot is the rank of an AI competitors corporation(like republic, meerchants)?
The answer is just another question.
raggnarok
Posts: 3
Joined: Sun, 17. Dec 06, 22:21

Post by raggnarok »

Could someone host a mirror for a .spk file of this script? The link in the first post doesn't work :(
User avatar
LV
Sith Lord
Posts: 8255
Joined: Wed, 6. Nov 02, 20:31
x3tc

Post by LV »

Sesk wrote: BTW whats the Gameplay entry, ive only got 'Enable AL Players', i saw 'AL Competitors' a few times before but it disapeared from the Ai menu...
Just set it to off ;)
arcana75 wrote:LV, can you give a rough guide on how I can restrict the number of names to use, !
quickest way is to edit the 447000 t file to remove the names you dont like and put something in thier place
Star_Raider15 wrote:one question wot is the rank of an AI competitors corporation(like republic, meerchants)?
look in the 448823 t file

1(min) is Local Trading
15(max) is Republic
raggnarok wrote:Could someone host a mirror for a .spk file of this script? The link in the first post doesn't work :(
yes it does :)
LV's TC Scripts
Readme's For All My Scripts


I felt a great disturbance in the forum, Like millions of voices cried out in terror, then were silenced

si tacuisses, philosophus mansisses
User avatar
Sesk
Posts: 441
Joined: Fri, 17. Nov 06, 21:09
x4

Post by Sesk »

Removing names in 447000 t file doesn't go well, it seems that there is a line count somewhere, i thought it was the line id 999 but still changing that to the total changed line count will give ReadText errors :(
User avatar
arcana75
Posts: 2165
Joined: Tue, 2. Dec 03, 09:28
x3tc

Post by arcana75 »

Sesk wrote:Removing names in 447000 t file doesn't go well, it seems that there is a line count somewhere, i thought it was the line id 999 but still changing that to the total changed line count will give ReadText errors :(
Probably a random number generator inside the AI creation script. That means two changes, the t file and the naming script.
Hieronymos
Posts: 830
Joined: Fri, 30. Dec 05, 22:14
x3

Post by Hieronymos »

The "Cycrow version" link results in a .zip version download. Will fire her up this eve..and see if Imperial Standards apply :D
Thanks LV.

Hieronymos
User avatar
Klyith
Posts: 594
Joined: Fri, 6. Jan 06, 01:38
x3

Post by Klyith »

arcana75 wrote:
Sesk wrote:Removing names in 447000 t file doesn't go well, it seems that there is a line count somewhere, i thought it was the line id 999 but still changing that to the total changed line count will give ReadText errors :(
Probably a random number generator inside the AI creation script. That means two changes, the t file and the naming script.
Yes, the script plugin.handymen.setup.ships has $rfn = random number function on line 78 that just uses a static value. It doesn't get it from the text file or anything.

Here is a edited version of this script which reads from page 7000 id 999 to get the "end of names" number. So you can just edit t/7000.xml with new / removed names and then change the number on line 999. The relevant section of code w/ my changes:

Code: Select all

078   * Edit - added reading end-of-file number for names from text page 7000
079    $textmaxnames= read text: page=7000 id=999
080    $textmaxnames= string $textmaxnames to integer
081    $textmaxnames=$textmaxnames + 1
082    $rfn= = random value from 20 to $textmaxnames - 1
083   * End of edit - PDP 1.8.2007 (Klyith)
084    $fname=sprintf: pageid=7000 textid=$rfn, $anull, null, null, null, null
dl here

(LV: If you don't want me putting out a modified version of your script, tell me & I'll remove it. If you want to put it into your official package, go ahead.)
Greedy_Bastard
Posts: 90
Joined: Wed, 4. Oct 06, 02:56
x3

Post by Greedy_Bastard »

I don't no if this is answered somewhere but i havnt found it so ill ask. Is there another way to recognize the competitors ships other than their names(smiley-??? :? wtf) because if im to ever kill him i kinda need to no where he is.
I bet you $25 that im greedier than you and ill prove it to you in 5 languages:
English: I love Money
Spanish: Amo el dinero
French: J'aime l'argent
German: Ich liebe Geld
Russian: Я люблю деньг
Now you owe me $25
Hadhafang
Posts: 86
Joined: Mon, 5. Jul 04, 15:23
x3

Post by Hadhafang »

Thier names show up as different colors making it very easy to tell its a competitor :)
"And so it begins!" Ambassador Koch, Babylon 5

"I have got to get me one of these!" Me after seeing a Whitestar
User avatar
Aragon Speed
Posts: 818
Joined: Sat, 10. Dec 05, 13:30
x4

Post by Aragon Speed »

Hey LV I have an idea for you that is based on this script set.

How about having somthing simular 2 this but for the player. You buy an autotrading robot for 1 of your ships, and off it goes building an empire for you. Uses players funds (Like an UT) for trading ect.
Last edited by Aragon Speed on Mon, 5. Mar 07, 16:46, edited 1 time in total.
Greedy_Bastard
Posts: 90
Joined: Wed, 4. Oct 06, 02:56
x3

Post by Greedy_Bastard »

dont remember a differnt color but then again i was busy escorting a couple capped ships w/ pirates still in sector so i wasnt really paying attention to it so thx and ill keep an eye out for him/her/it.
I bet you $25 that im greedier than you and ill prove it to you in 5 languages:
English: I love Money
Spanish: Amo el dinero
French: J'aime l'argent
German: Ich liebe Geld
Russian: Я люблю деньг
Now you owe me $25
Startomb
Posts: 51
Joined: Tue, 27. Dec 05, 08:47
x3

Post by Startomb »

they dont show up a dif colour if u have the lv race response ships :(
User avatar
LV
Sith Lord
Posts: 8255
Joined: Wed, 6. Nov 02, 20:31
x3tc

Post by LV »

yes they do, but only after they reach LV2
LV's TC Scripts
Readme's For All My Scripts


I felt a great disturbance in the forum, Like millions of voices cried out in terror, then were silenced

si tacuisses, philosophus mansisses
ORIOLE
Posts: 324
Joined: Wed, 20. Oct 04, 10:34
x2

Post by ORIOLE »

Hi LV,

Thank you for a great script! Is there another way to check on the progress of my competitors?

Take care,
User avatar
LV
Sith Lord
Posts: 8255
Joined: Wed, 6. Nov 02, 20:31
x3tc

Post by LV »

check the BBS, i'm sure a global update is on there defining their current worth (maybe i never implemented it) if not let me know as i'm just finishing up RRF and TH so AIC can be next
User avatar
Aragon Speed
Posts: 818
Joined: Sat, 10. Dec 05, 13:30
x4

Post by Aragon Speed »

WOW! you know it's a really BAD idea when no one can even be bothered to tell you that it's a bad idea. :lol:
User avatar
axxxa
Posts: 47
Joined: Sat, 2. Sep 06, 14:34
x3tc

Post by axxxa »

@LV

...great idea this script.
(sry for my bad english)

i´ve some questions:

1. why the competitors build more tp´s as there define in the .handymen.com.scan (have make some tests for this)
- the same for the stations

2. some "fighter" go on w/o the planned script.

3. i´ve notice some freece. U know why?

...i know this script is BETA. But i want it!!!

i hope u work on it goes on.

Thx for INFO
Sprungantrieb? ...neinDanke...
Gleichberechtigung im Uni (nocheat) ichbittedrum...
>> NEW DiMENSiONS <<
...Hoffnung naht
Rikaelus
Posts: 233
Joined: Tue, 29. Nov 05, 04:03
x3

Post by Rikaelus »

Having read through the entire topic I'm no longer 100% sure... does fighting with the other companies go towards hurting race reputation?

Logically I'd rather it not, since I don't think they'd pay a similar price when fighting me. I can imagine them attacking my forces, my forces killing them in defense, and me losing reputation because of it. Self defense! :twisted:

Once I regain the empire I lost when my laptop crashed I'll probably try this out first hand.
ORIOLE
Posts: 324
Joined: Wed, 20. Oct 04, 10:34
x2

Post by ORIOLE »

LV wrote:check the BBS, i'm sure a global update is on there defining their current worth (maybe i never implemented it) if not let me know as i'm just finishing up RRF and TH so AIC can be next
I have checked again, There is only a summary of my company value and number of stations and ships.

Could you please include this feature? It would be grand if I could follow the progress of my competitors.

Thx,
:)

Return to “X³: Reunion - Scripts and Modding”