Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Trovaner

Pages: 1 ... 51 52 53 54 55 56 57 [58] 59 60 61 62 63 64
1141
Stock Showcases / Re: Virus Bomb stock showcase
« on: January 21, 2010, 09:44:06 PM »
I've made a 36HS similar to Ebola but it tends to havok whenever it turns too fast (which I'm guessing is your problem). Use the axle loading glitch to get the drive motors closer to the weapon motors.

1142
Tutorials and Tips / Re: AI-ing (.py files, coding, R+D, and help)
« on: January 16, 2010, 11:56:56 PM »
Right now, self.botinzone1 isn't getting changed so the bot won't spin.

Things you can do:
1. Add a SmartZoneEvent section to the bottom -- you would probably want to move the "Fire" command down, too; if you choose to do this
2. Do what was done for the "Fire" command -- the only problem with this would be that the two smartzones could interfere with each other

1143
General Support / Re: Need some help with new rammer AI.
« on: January 08, 2010, 09:16:36 PM »
After looking at the coding again, I think you may also want to add something so that it will use default values when 'runspeed' and/or 'lookahead' are not in the bindings.


Edit: Something like this...
Code: [Select]

    def __init__(self, ai):
        list = [x for x in AI.ai_bindings if x[0] == self.ai.botName]
        self.runspeed = list[0][2].get('runspeed')
        if self.runspeed == None: self.runspeed = 15
        self.lookahead = list[0][2].get('lookahead')
        if self.lookahead == None: self.lookahead = 10

1144
General Support / Re: Need some help with new rammer AI.
« on: January 08, 2010, 08:44:00 PM »
Assuming that you want to name them runspeed and lookahead...
Code: [Select]
    def __init__(self, ai):
        list = [x for x in AI.ai_bindings if x[0] == self.ai.botName]
        self.runspeed = list[0][2]['runspeed']
        self.lookahead = list[0][2]['lookahead']

1145
Tournament Archives / Re: Dsl soccer tournament IDEA
« on: December 18, 2009, 04:10:24 PM »
Instead of making things overly complicated, it would be possible to make the Arena control the movements of each bot or use custom AI tactics that would make the bots play soccer rather than attack each other.

For the custom soccer arena: Depending on how many community members want to participate, I would be willing to write up some coding for the Arena to control the movement of AI bots. Doing things this way would result in less lag but it would be less accurate than separate AI.py files. 

For the custom AI files: I have actually written up rules for a programming tournament that would require teams to make their own soccer playing AI. It could take place before a basic soccer tournament (that way, there would be several choices of AI.py files that would specialize in different things) or I could alter the programming tournament a little to include more community involvement (it already allows some non-programmer involvement). Another idea would be to make one AI tactic that could be used for all soccer bots made by the community.

If there is enough support for this, I would be willing to code/host anything necessary to get this thing off the ground.

1146
Stock Showcases / Re: Pwnator's Stock Showcase
« on: December 16, 2009, 09:27:57 PM »
I believe the success of ITI is related to the fact that the BBEANS floor uses the same floor as the Infinity Arena. Plane01 is flatter than any other type of GMF object (such as the one used for the floor of the Combat Arena) while being completely transparent, low lag, and built-in.

The smoothness of the floor allows wedges to work better with a smaller margin of inconsistencies that would have been caused by the arena itself. For some reason, the chassis usually vibrates more on standard GMF objects (thats why when you use an empty chassis inside of the test arena, it still moves after falling to the floor). Of course, this is all just speculation.

1147
I've been using Chrome since Goose first announced its release and, now that it includes more functional addons, I'm one step closer to removing Firefox from my computer. Chrome has a cleaner look and runs faster overall.

Chrome has many addons that perform similar to Mouse Gestures but I liked this one the most.

1148
Discussion / Re: I need some help With the bot exchange.
« on: December 08, 2009, 12:18:37 AM »
This time I tested it with DSL and did not get any major problems. AlthoughI still need to look into problem #2 (listed in previous post), this version should work.
Code: [Select]
::Author - Trovaner
::Description - Makes a list of RA2 component names, files, and weights

for %%a in (*.txt) do (set file=%%a & call :Create "%%a")
if exist styles (for %%b in (styles/*.txt) do (set file=styles\%%b & call :Create "%%b"))
goto Complete

:Create
for /F "tokens=*" %%c in (%file%) do set %%c
findstr /b mass %file%
if errorlevel 1 (
findstr /b name %file%
if errorlevel 1 (
::Loaded if the file is not being loaded correctly or if it is not a component text file
set file=%file:styles\=%
echo "%file:~0,-1%" >> FileError.tmp
goto :EOF
)
::Loaded if the mass value is not listed in the text file
set file=%file:styles\=%
echo "%name :~1%", "%file:~0,-1%", >> MassError.tmp
goto :EOF
)
::Loaded if there were no problems
set file=%file:styles\=%
echo "%name :~1%", "%file:~0,-1%",%mass % >> TextFileList.tmp
goto :EOF

:Complete
if exist FileError.tmp (
START /w NOTEPAD.EXE FileError.tmp
del FileError.tmp
)
if exist MassError.tmp (
START /w NOTEPAD.EXE MassError.tmp
del MassError.tmp
)
START /w NOTEPAD.EXE TextFileList.tmp
del TextFileList.tmp

1149
Site News and Feedback / Re: New Forum Feedback
« on: November 30, 2009, 05:02:51 PM »
<<<< I got double "Technical Advisor" status

Is there a reason why some of the sigs sometimes end up on the right side?

I really like the new stats pages.

1150
Discussion / I need some help With the bot exchange.
« on: November 28, 2009, 10:30:27 AM »
Quote from: ACAMS;81259
Anybody seen Trov lately?

I've been visiting the forums everyday but haven't said much... I've been very busy lately but it looks like I'll have more time next week...

In regards to the batch file, I ran into several issues related to the DSL components. For those interested in what needs to be fixed:
1. Anything with parenthesis in the component name is currently causing an error that stops the batch file.
2. One component had a capital "M" for the "mass" setting (I need to make sure that RA2 isn't being case sensitive, too)

1151
Discussion / I need some help With the bot exchange.
« on: November 16, 2009, 06:16:04 PM »
Sorry for the delay, I've had this done for a while but I haven't had the time to post it until now...

This version lists what problem it ran into before listing everything that it was able to extract:
Code: [Select]
::Author - Trovaner
::Description - Makes a list of RA2 component names, files, and weights
::What To Do -
::  1. Put this in the same folder as the RA2 component text files
::  2. Double click this batch file
::  3. Save the file or copy/paste it into something else
::  4. Complete the formatting listed here: https://gametechmods.com/forums/showthread.php?t=2714
::  5. Reply to the above thread with your results

for %%a in (*.txt) do (set file=%%a & call :Create &quot;%%a&quot;)
if exist styles (for %%b in (styles/*.txt) do (set file=styles\%%b & call :Create &quot;%%b&quot;))
goto Complete

:Create
for /F &quot;tokens=*&quot; %%c in (%file%) do set %%c
findstr /b mass %file%
if errorlevel 1 (
findstr /b name %file%
if errorlevel 1 (
::Loaded if the file is not being loaded correctly or if it is not a component text file
set file=%file:styles\=%
echo FileError: %file% >> Problems.tmp
goto :EOF
)
::Loaded if the mass value is not listed in the text file
set file=%file:styles\=%
echo MassError: %name :~1%, %file:~0,-1% >> Problems.tmp
goto :EOF
)
::Loaded if there were no problems
set file=%file:styles\=%
echo %name :~1%, %file:~0,-1%,%mass % >> TextFileList.tmp
goto :EOF

:Complete
if exist Problems.tmp (
START /w NOTEPAD.EXE Problems.tmp
del Problems.tmp
)
START /w NOTEPAD.EXE TextFileList.tmp
del TextFileList.tmp

Or you could use this version if you would prefer not to have the error listed before the info (instead it is listed as the file name):
Code: [Select]
::Author - Trovaner
::Description - Makes a list of RA2 component names, files, and weights
::What To Do -
::  1. Put this in the same folder as the RA2 component text files
::  2. Double click this batch file
::  3. Save the file or copy/paste it into something else
::  4. Complete the formatting listed here: https://gametechmods.com/forums/showthread.php?t=2714
::  5. Reply to the above thread with your results

for %%a in (*.txt) do (set file=%%a & call :Create "%%a")
if exist styles (for %%b in (styles/*.txt) do (set file=styles\%%b & call :Create "%%b"))
goto Complete

:Create
for /F "tokens=*" %%c in (%file%) do set %%c
findstr /b mass %file%
if errorlevel 1 (
findstr /b name %file%
if errorlevel 1 (
::Loaded if the file is not being loaded correctly or if it is not a component text file
set file=%file:styles\=%
echo %file% >> FileError.tmp
goto :EOF
)
::Loaded if the mass value is not listed in the text file
set file=%file:styles\=%
echo %name :~1%, %file:~0,-1% >> MassError.tmp
goto :EOF
)
::Loaded if there were no problems
set file=%file:styles\=%
echo %name :~1%, %file:~0,-1%,%mass % >> TextFileList.tmp
goto :EOF

:Complete
if exist MassError.tmp (
START /w NOTEPAD.EXE MassError.tmp
del MassError.tmp
)
if exist FileError.tmp (
START /w NOTEPAD.EXE FileError.tmp
del FileError.tmp
)
START /w NOTEPAD.EXE TextFileList.tmp
del TextFileList.tmp

1152
Discussion / I need some help With the bot exchange.
« on: November 12, 2009, 12:59:40 AM »
I probably shouldn't be up still but....

Code: [Select]
::Author - Trovaner
::Description - Makes a list of RA2 component names, files, and weights
::What To Do -
::  1. Put this in the same folder as the RA2 component text files
::  2. Double click this batch file
::  3. Save the file or copy/paste it into something else
::  4. Complete the formatting listed here: https://gametechmods.com/forums/showthread.php?t=2714
::  5. Reply to the above thread with your results

for %%a in (*.txt) do (set file=%%a & call :CreateList &quot;%%a&quot;)
if exist styles (for %%b in (styles/*.txt) do (set file=styles\%%b & call :CreateList &quot;%%b&quot;))
goto Complete

:CreateList
findstr mass %file%
if errorlevel 1 (
echo %file% >> Problems.tmp
goto :EOF
)
for /F &quot;tokens=*&quot; %%c in (%file%) do set %%c
set file=%file:styles\=%
echo %name :~1%, %file:~0,-1%,%mass % >> TextFileList.tmp
goto :EOF

:Complete
if exist Problems.tmp (
START /w NOTEPAD.EXE Problems.tmp
del Problems.tmp
)
START /w NOTEPAD.EXE TextFileList.tmp
del TextFileList.tmp

Just save it to whatever you want as long as the extension is ".bat"

This version prints out a separate file for all text files that cause errors or are missing values. It will also automatically add the styles folder to the main list.

1153
Discussion / I need some help With the bot exchange.
« 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)

1154
Discussion / I need some help With the bot exchange.
« 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.

1155
Discussion / I need some help With the bot exchange.
« 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

1156
Discussion / I need some help With the bot exchange.
« on: November 09, 2009, 11:39:31 PM »
Thanks for your hard work Goose. I can't wait to check out the new features. Some other time, I would be interested in hearing how you figured out how to calculate the number of units that make up the chassis.

Unfortunately, I have my reasons for not having time to help much. Even though, several large packs can be done in a matter a minutes with the batch file I made (I'm not trying to sound hypocritical here).

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.)

1157
Discussion / I need some help With the bot exchange.
« on: November 04, 2009, 12:17:41 AM »
Thanks for the appreciation.

Anyways, here is another Batch file that will make doing this a lot easier:
(Copy this into a file named "TextFilePrinter2.bat")
Code: [Select]
::Author - Trovaner
::Description - Makes a list of RA2 component names, files, and weights
::What To Do -
::  1. Put this in the same folder as the RA2 component text files
::  2. Double click this batch file
::  3. Copy and paste (or save) the results somewhere else
::  4. Complete the formatting listed here: https://gametechmods.com/forums/showthread.php?t=2714
::  5. Reply to the above thread with your results

for %%a in (*.txt) do (set file= %%a & call :Create &quot;%%a&quot;)
goto Complete

:Create
for /F &quot;tokens=*&quot; %%b in (%file%) do set %%b
echo %name :~1%,%file:~0,-1%,%mass % >> TextFileList.tmp
goto :EOF

:Complete
::Pause
START /w NOTEPAD.EXE TextFileList.tmp
del TextFileList.tmp
Now all you really need to do is write the name of the pack and where to download it (following the format Goose gave in his first post). It now automatically opens the file where it stored the list, deletes automatically after closing out of notepad, looks inside of the text files for the desired information, formats things better, and got quite a bit more complicated.

@Goose: Whenever you have time, could you answer the questions in my previous post.

@Everyone Else: Please post if you want to help out. Before doing anything, please post whatever you plan on doing so that no one else does it. I'm still very busy so I'm not going to request any sections yet but I might do something later... (but like I'm trying to get you guys to do, I'll post what it is before starting)

1158
Discussion / Is this possible? (Difficulty button idea)
« on: November 01, 2009, 03:56:08 PM »
Some of the original programming suggests that they were working on a difficulty setting but it was never implemented.

The EXE regulates what buttons generated by GIBs do so we can't add any new ones unless the EXE already permits it (I'm not sure if we could access some of the unused coding buf there is probably a reason why it wasn't used). The only known work around is using the practice arena buttons (the EXE is allowing the practice arena python to know when it is pressed).

1159
Game Development / New Robot combat game- in progress.
« on: October 31, 2009, 04:58:39 PM »
I like the looks of it but I get too much lag (in main menu and in game) on this computer no matter what I do...

1160
Discussion / I need some help With the bot exchange.
« on: October 30, 2009, 08:16:12 PM »
I have a feeling I know what it is for... (and possibly why ACAMS had a similar question)

Anyways, a couple quick questions:
1. What do you want done when multiple packs include the same components (such as DSL-Components&AI and DSL-Components or between versions)
2. What custom components are you wanting? (GTM Downloads Section, RFSHQ Downloads Section, Member Signatures, Member Sites (such as Giga's site))
3. Who plans on helping? (my time is more limited than before so I can't be counted on for everything (although, I will volunteer some help))

Anyone wanting to help (but not wanting to make a list) can use the info that I gave in ACAMS thread to make a list in Goose's format.

Pages: 1 ... 51 52 53 54 55 56 57 [58] 59 60 61 62 63 64