Author Topic: I need some help With the bot exchange.  (Read 12496 times)

Offline ACAMS

I need some help With the bot exchange.
« Reply #40 on: November 10, 2009, 07:32:39 AM »
Quote from: Trovaner;78173

Just wondering: Is anyone using the batch I wrote? If not, why (compatibility/programming language, required effort, learning how to use it, untrustworthy source)? In my very limited time, I would like to fix/amend any problems in it so that this task is less burdensome on your guys' schedules and so that things are completed quickly and accurately (in both formatting and spelling) by more than just a couple of people.

 
The only thing I see is that it has a space after componentname.txt
 
259Disc, 259disc.TXT , 45
 
It probably should be.... 259Disc, 259disc.TXT, 45
 
I guess goose needs to tell us if it will work with the space.
 
What do I do to fix it?
I thought it was this line..
 
echo %name : =%,%file%,%mass % >> TextFileList.tmp
 
so I changed it to..
 
echo %name: =%,%file%,%mass % >> TextFileList.tmp
 
it didn't work.....then I changed it to
 
echo %name :=%,%file%,%mass % >> TextFileList.tmp
 
and it didn't work.

Offline ashman12

  • Super Heavyweight
  • Posts: 876
  • Rep: 0
  • Insanity is my only means of relaxation...
    • http://www.facebook.com/h
    • http://www.youtube.com/us
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
I need some help With the bot exchange.
« Reply #41 on: November 10, 2009, 10:42:33 AM »
Quote from: Trovaner;78173


Just wondering: Is anyone using the batch I wrote? If not, why (compatibility/programming language, required effort, learning how to use it, untrustworthy source)? In my very limited time, I would like to fix/amend any problems in it so that this task is less burdensome on your guys' schedules and so that things are completed quickly and accurately (in both formatting and spelling) by more than just a couple of people.

Would you also like the chassis armors listed? If so, in what format? (aluminum, wood, steel, plastic, etc.)


im not sure how to use it if its a .CFZ file.
ive tried it on other things aswell but sometimes it just brings up a blank page on the notepad like thing it brings up.
is it just because im useless at these sort of things or am i doing something wrong.

Offline ACAMS

I need some help With the bot exchange.
« Reply #42 on: November 10, 2009, 11:04:22 AM »
You need to put it in the folder with the text files and double click to run, after it runs and the file opens, save the file to your desktop as whatev.txt, because it deletes it's self when you close it.

Offline ashman12

  • Super Heavyweight
  • Posts: 876
  • Rep: 0
  • Insanity is my only means of relaxation...
    • http://www.facebook.com/h
    • http://www.youtube.com/us
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
I need some help With the bot exchange.
« Reply #43 on: November 10, 2009, 11:11:49 AM »
what about the components that dont have txt files

Offline ACAMS

I need some help With the bot exchange.
« Reply #44 on: November 10, 2009, 11:16:51 AM »
Then you have to uncfl them (decompile the Components.cfz)

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
I need some help With the bot exchange.
« Reply #45 on: November 10, 2009, 04:35:36 PM »
Oops... To remove the extra space after the text file name, replace this line in the batch file:
echo %name : =%,%file%,%mass % >> TextFileList.tmp
with this:
echo %name : =%, %file: =%,%mass % >> TextFileList.tmp

Thanks for the input. Any more problems?

Edit: Replace with this instead:
echo %name :~1%,%file:~0,-1%,%mass % >> TextFileList.tmp

Offline ACAMS

I need some help With the bot exchange.
« Reply #46 on: November 10, 2009, 04:44:56 PM »
Not that I can tell.....THANKS, it really helped a lot.
 
DSL is done! https://gametechmods.com/Goose/Text_Files/dsl.txt
 
I made this uploader to help out, and so goose will have one single folder for all his txt files.....but be sure to post the link here so he will know who did it.
 
**** https://gametechmods.com/?do=textuploader ****

There is a link on page 1 too.

Offline ACAMS

I need some help With the bot exchange.
« Reply #47 on: November 10, 2009, 06:42:28 PM »
Well now it does like this....
 
DSLAxleMounts,axle180.txt, 12
 
Should be...
 
DSL Axle Mounts, axle180.txt, 12
 
I have no clue what to do.

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
I need some help With the bot exchange.
« Reply #48 on: November 10, 2009, 07:17:04 PM »
Oops, again.... I forgot that it had two spaces (and I told it to replace all spaces with nothing). I edited my previous post with the new fix. Thank you ACAMS for catching that.

Sorry about cluttering up your thread, Goose. If there are anymore issues/suggestions from anyone regarding the batch file please feel free to PM me about it.

Offline ACAMS

I need some help With the bot exchange.
« Reply #49 on: November 10, 2009, 07:24:33 PM »
Almost fixed it.....it still does not space the name
 
DSLAxleMounts, axle180.txt, 12
 
Should be..
 
DSL Axle Mounts

Offline goose

  • *
  • Posts: 10015
  • Rep: 1
    • View Profile
    • Awards
I need some help With the bot exchange.
« Reply #50 on: November 10, 2009, 07:54:10 PM »
nice work! keep  them coming guys!


the algorithm for calculating chassis weight is not the issue. RA2 calculates it by adding up the sum of the surface area of each polygon.  
Creating a php function or class to do so is proving to be frustrating.
« Last Edit: November 10, 2009, 08:22:13 PM by goose »
sippin' on my Honeydew bubble tea.
party in my tummy. yummy, yummy.

Offline trumpetguy

  • Super Heavyweight
  • Posts: 1162
  • Rep: 0
  • Forum Ameri-asian
    • http://www.facebook.com/DC.Scinerd
    • http://www.youtube.com/user/PokeDenny
    • View Profile
    • Awards
  • Skype: dennycao202
I need some help With the bot exchange.
« Reply #51 on: November 10, 2009, 08:23:18 PM »
Guess I'm done with mine, that was actually fun, and is anybody doing the RFS pack?

"Two things are infinite:the universe and human stupidity;and I\'m not sure about the universe" -Albert Einstein
*IF YOU ARE NEUTRAL IN THIS SIG BUSINESS PUT THIS IN YOUR SIG*

Offline Sage

  • *
  • Posts: 6179
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
I need some help With the bot exchange.
« Reply #52 on: November 10, 2009, 08:57:56 PM »
Quote from: goose;78348
nice work! keep  them coming guys!


the algorithm for calculating chassis weight is not the issue. RA2 calculates it by adding up the sum of the surface area of each polygon.  
Creating a php function or class to do so is proving to be frustrating.


Is the weight not written inside the .bot file? Probably not cause it sounds like something you guys would have checked, but sometimes the simplest solutions are the most overlooked...
You got my vote for RA2 Wizard. Always and forever.

Offline trumpetguy

  • Super Heavyweight
  • Posts: 1162
  • Rep: 0
  • Forum Ameri-asian
    • http://www.facebook.com/DC.Scinerd
    • http://www.youtube.com/user/PokeDenny
    • View Profile
    • Awards
  • Skype: dennycao202
I need some help With the bot exchange.
« Reply #53 on: November 10, 2009, 09:04:29 PM »
I'mmmm baaaaaaaccccccccck oh and DP
RFS Pack 1 (can only find that): https://gametechmods.com/rfshq/pafiledb/index.php?act=download&id=96
CD-RW Disc, cdrw.txt, 1*
Fire Extinguisher, fireextinguish.txt, 25*
Hydraulic Burst Motor, hydraulicm.txt, 30*
RFS Labs-mobile License Plate, plate.txt, 20*
REDRUM, redrum.txt, 20*
Competiton Flag, robotarenaflag.txt, 7*
RoboUplink Side Panels, robouplink.txt, 20*

...wow...wierd stuff...

"Two things are infinite:the universe and human stupidity;and I\'m not sure about the universe" -Albert Einstein
*IF YOU ARE NEUTRAL IN THIS SIG BUSINESS PUT THIS IN YOUR SIG*

Offline Madiaba

I need some help With the bot exchange.
« Reply #54 on: November 10, 2009, 09:08:42 PM »
Quote from: Sage;78358
Is the weight not written inside the .bot file? Probably not cause it sounds like something you guys would have checked, but sometimes the simplest solutions are the most overlooked...

That would be nice.. Only the chassis dimensions, the armor, and the components.
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
I need some help With the bot exchange.
« Reply #55 on: November 10, 2009, 11:05:11 PM »
Quote from: ACAMS;78339
Almost fixed it.....it still does not space the name
DSLAxleMounts, axle180.txt, 12
Should be..
DSL Axle Mounts
Okay, I think I figured out a solution for this. Simply replace the line that we keep replacing with this one:
echo %name :~1%,%file:~0,-1%,%mass % >> TextFileList.tmp

The only issues/improvements that I'm currently working on solving are:
1.It doesn't support text files that have a space in their filename... (it will still add it to the list but the name and weight will be wrong)
2.The styles folder currently needs to be done separately
3.You need to decompress CFZ files (I doubt I'll fix this but I might automatically load the decompresser)
4.If the weight is not listed in the text file, it will use the weight from the previous component (major issue)

Offline Serge

  • *
  • Posts: 1530
  • Rep: 13
    • View Profile
    • http://www.q3k.org/
    • Awards
I need some help With the bot exchange.
« Reply #56 on: November 11, 2009, 01:57:59 AM »
Quote from: goose;78348
nice work! keep  them coming guys!


the algorithm for calculating chassis weight is not the issue. RA2 calculates it by adding up the sum of the surface area of each polygon.  
Creating a php function or class to do so is proving to be frustrating.

If the polygons have 3 vertex coordinates that define them, shouldn't this be quite simple?

In a triangle ABC in 3d space:

P is the area of the triangle. Repeat for every mesh triangle. If they're quads, subdivide them.

Eh?
home | twitter | yt | gmf de/compiler | component freedom | xmpp: q3k@q3k.org | email: q3k@q3k.org

Offline Somebody

  • *
  • Posts: 7201
  • Rep: 13
  • CP: +2
    • View Profile
    • Awards
I need some help With the bot exchange.
« Reply #57 on: November 11, 2009, 08:02:23 AM »
With Darkpack 3 done, does this mean that you won't need Darkpack 1, 1.1, or 2?

P.S. Im doing the icerparts.
« Last Edit: November 11, 2009, 10:26:02 AM by Somebody »
I built that big robot on that TV show that time


Offline trumpetguy

  • Super Heavyweight
  • Posts: 1162
  • Rep: 0
  • Forum Ameri-asian
    • http://www.facebook.com/DC.Scinerd
    • http://www.youtube.com/user/PokeDenny
    • View Profile
    • Awards
  • Skype: dennycao202
I need some help With the bot exchange.
« Reply #58 on: November 11, 2009, 12:44:53 PM »
Does anybody know if RFS released another pack?

"Two things are infinite:the universe and human stupidity;and I\'m not sure about the universe" -Albert Einstein
*IF YOU ARE NEUTRAL IN THIS SIG BUSINESS PUT THIS IN YOUR SIG*

Offline ACAMS

I need some help With the bot exchange.
« Reply #59 on: November 11, 2009, 02:53:48 PM »
Quote from: Trovaner;78368
The only issues/improvements that I'm currently working on solving are:
4.If the weight is not listed in the text file, it will use the weight from the previous component (major issue)

I just noticed this......that means I have to redo all I have done. (or atleast go through it and make the corrections)
 
Do you plan to find a fix for this soon?
« Last Edit: November 11, 2009, 03:39:13 PM by ACAMS »