for people who write programs for elma
Moderator: Moporators
for people who write programs for elma
what I woudl like to find in elma 2 is library for getting times that every programmer for elma 1 has to get by his own from stats.txt.
When you write prog for elma you have to get through the file stats.txt, get all times as a strings; convert it to numbers hh,mm,ss,cent; summ it to cents to calculate for example average or relative percents etc.
There should be library containing for example function Give_Me_The_time_in_cents(level,entry on the list) or Time_in_cents_to_string(time_in_cents)
I think if you want to make prog for elma you can think of others functions ...
There should be library containing for example function Give_Me_The_time_in_cents(level,entry on the list) or Time_in_cents_to_string(time_in_cents)
I think if you want to make prog for elma you can think of others functions ...
Yeha, it would make programming cooler but are those strings so hard to make yourself?
40:02,71 (151.) | WCup4: 8. | 3x WR | 3x GAA | 11x FEM | KOM | The History of Elasto Mania (1995-2018)
Re: for people who write programs for elma
Ok, I guess this is the right topic for this:
Could someone make a simple program (at least it sounds like it) that would delete (or make a list of) all .rec files whose level files...
1. don't exist in Lev folder (ignoring internal recs of course..)
2. have been modified so that they're not watchable?
First point is more important than 2nd point, in case it's hard to make...
Or does this kind of prog already exist...?
Could someone make a simple program (at least it sounds like it) that would delete (or make a list of) all .rec files whose level files...
1. don't exist in Lev folder (ignoring internal recs of course..)
2. have been modified so that they're not watchable?
First point is more important than 2nd point, in case it's hard to make...
Or does this kind of prog already exist...?
Re: for people who write programs for elma
That's a nice idea, I'm often angry when I wanna watch Rec and error 'lev not found' occurs...
Team TR
Multi WR in Labyrinth with GRob
Best Internal Total Times, Pipe stats & Pipe archive
World kuski map, World Cup stats
Re: for people who write programs for elma
najs idea.
Would be also nice to be able to sort recs by lev, no?
Would be also nice to be able to sort recs by lev, no?
Re: for people who write programs for elma
1. and 2. is both not hard to do, I can write this in the next weeks if no one else did
Re: for people who write programs for elma
MAX THANKS DaFred in advance!!
Btw: what language do you use for this?
Btw: what language do you use for this?
Re: for people who write programs for elma
C# or maybe java, but i could also try to do it in c... what do you want?
Re: for people who write programs for elma
how does it matter?
Team TR
Multi WR in Labyrinth with GRob
Best Internal Total Times, Pipe stats & Pipe archive
World kuski map, World Cup stats
Re: for people who write programs for elma
DaFred, i vote for C#.
Re: for people who write programs for elma
Nah, use the language you want, DaFred :) I was just curious.
Re: for people who write programs for elma
java runs on all os but you need JRE (maybe not so important caus elma works only on win ), C# needs installed .NET and a c programm only needs windows but is more work for me
I think C# is the winnar
I think C# is the winnar
Re: for people who write programs for elma
Oh, Coc0k was quicker :O
Cool program, it does the job I want! I found a couple of bugs, though:
1. It crashes if it encounters a lev with size 0.
2. It thinks replays that were driven in across levs are bad (it says "Level has other version"). I got 4 mchmxxx.recs like this, I'm glad I noticed this!
Would be maxest if I could somehow click and delete the recs I want straight from the list (like in ALE replay manager or something...), so no text file generation needed necessarily... :)
Cool program, it does the job I want! I found a couple of bugs, though:
1. It crashes if it encounters a lev with size 0.
2. It thinks replays that were driven in across levs are bad (it says "Level has other version"). I got 4 mchmxxx.recs like this, I'm glad I noticed this!
Would be maxest if I could somehow click and delete the recs I want straight from the list (like in ALE replay manager or something...), so no text file generation needed necessarily... :)
Re: for people who write programs for elma
another problem: doesnt work on Vista
Re: for people who write programs for elma
oh havent see it, heres my version
max slow with many recs und levs so not really good imo...
max slow with many recs und levs so not really good imo...
- Attachments
-
- cleaner.zip
- (6.53 KiB) Downloaded 140 times
Re: for people who write programs for elma
oh, cool, works now
very many thx guys :*
very many thx guys :*
Re: for people who write programs for elma
DaFred, your program is nice too, it seems to be very small :)
It has the same bugs as in Coc0k's one xD
It has the same bugs as in Coc0k's one xD
Re: for people who write programs for elma
really? ^^
which bug?
Dont know if anything works fine so better be carefull
[edit]
ah found your bug posting...
which bug?
Dont know if anything works fine so better be carefull
[edit]
ah found your bug posting...
Re: for people who write programs for elma
hmm could you modify this prog so it searches through all sub-folders in Rec Coc0k?
Team TR
Multi WR in Labyrinth with GRob
Best Internal Total Times, Pipe stats & Pipe archive
World kuski map, World Cup stats
Re: for people who write programs for elma
GUI version:
1. Across support
2. No Vista support
1. Across support
2. No Vista support
what about lev files? where are they placed?Pawq wrote:hmm could you modify this prog so it searches through all sub-folders in Rec Coc0k?
ez 500 sms
Re: for people who write programs for elma
in Lev ofc, but most of replays are put into sum subfolders like 'downloaded', 'old wrs' and 'balle wins'.
Team TR
Multi WR in Labyrinth with GRob
Best Internal Total Times, Pipe stats & Pipe archive
World kuski map, World Cup stats
Re: for people who write programs for elma
seems to work fine on vista
http://up.k10x.net/hfaygxxsrmfcn/Vista.jpg
and i have subfolders in rec and lev
also, i have 2 rec folders in my belma directory, so i can just rename rec to chose which i want.
is there any possibility to select one or more folders to get 'em all?
http://up.k10x.net/hfaygxxsrmfcn/Vista.jpg
and i have subfolders in rec and lev
also, i have 2 rec folders in my belma directory, so i can just rename rec to chose which i want.
is there any possibility to select one or more folders to get 'em all?
Re: for people who write programs for elma
fixed old bugs, add new ones
i'll think about it.Mawane wrote: is there any possibility to select one or more folders to get 'em all?
ez 500 sms
Re: for people who write programs for elma
Well, I made my version of the program too, basically because I wanted to learn some VB!
Features:
-Search internal/external recs separately or at the same time
-Search with pattern. To search recfiles that begin with ab, just type ab*.rec in the box. To search all recfiles that have 4 letters, type ????.rec in the box. If you want battlerecs, type *_*.rec (I usually delete all of them regularly).
-Search bad recs: Recs with lev missing, or recs with wrong lev version in Lev folder. Takes across levs into account.
-Search replays with certain amount of frames (input bounds in the 2 boxes)
-Search subdirectories in Rec folder too, if wanted
-Delete selected replay - button
-View selected replay's properties (its lev file and number of frames)
-This prog doesn't have to be in Elma directory. You browse the Elma dir in the program.
Make sure you have no 0-byte levs or 0-byte recs, it may crash if it encounters any, I didn't test! I can fix it in next version anyway :)
Not sure if this works on Vista, but try!Features:
-Search internal/external recs separately or at the same time
-Search with pattern. To search recfiles that begin with ab, just type ab*.rec in the box. To search all recfiles that have 4 letters, type ????.rec in the box. If you want battlerecs, type *_*.rec (I usually delete all of them regularly).
-Search bad recs: Recs with lev missing, or recs with wrong lev version in Lev folder. Takes across levs into account.
-Search replays with certain amount of frames (input bounds in the 2 boxes)
-Search subdirectories in Rec folder too, if wanted
-Delete selected replay - button
-View selected replay's properties (its lev file and number of frames)
-This prog doesn't have to be in Elma directory. You browse the Elma dir in the program.
Make sure you have no 0-byte levs or 0-byte recs, it may crash if it encounters any, I didn't test! I can fix it in next version anyway :)
Re: for people who write programs for elma
well while you guys are on it, why not get coco's replay watcher implemented in the program =)
so there's A program for replays =D
so there's A program for replays =D
Thorze wrote:I just wanted to make a cool topic like Juish have cool topics..
Re: for people who write programs for elma
i havent .net framework. fix it plz.Smibu wrote:Well, I made my version of the program too, basically because I wanted to learn some VB!
ppl first must install jrexiphias wrote:well while you guys are on it, why not get coco's replay watcher implemented in the program =)
so there's A program for replays =D
ez 500 sms
Re: for people who write programs for elma
I guess simplest way to fix the problem is that you download .NET Framework 3.5 Service Pack 1 (Full Package). I don't know how to make my prog not need it.
Re: for people who write programs for elma
parcially wrong... jre included in all browsers (ie, ffox, opera, ...) for few yearsCoc0k wrote:ppl first must install jrexiphias wrote:well while you guys are on it, why not get coco's replay watcher implemented in the program =)
so there's A program for replays =D
applet could be rewrited for another platform...
Re: for people who write programs for elma
As we just said on elma france, i could take a look that way. Let's say C++/Qt4.5 and a funny novative replay displayCoco wrote:applet could be rewrited for another platform...
Re: for people who write programs for elma
I would like a program to rename a pack of files. It's very long to rename manually hundred of recs, levs or anything other.
ex:to
ex:
Code: Select all
p01x1407.rec
p02x1543.rec
p03x1800.rec
...
Code: Select all
01ProD.rec
02ProD.rec
03ProD.rec
...
Re: for people who write programs for elma
there are standard dos batches for those.
Re: for people who write programs for elma
http://www.123renamer.com/about18.htmMawane wrote:I would like a program to rename a pack of files. It's very long to rename manually hundred of recs, levs or anything other.
ex:toCode: Select all
p01x1407.rec p02x1543.rec p03x1800.rec ...
Code: Select all
01ProD.rec 02ProD.rec 03ProD.rec ...
or google
http://www.google.com/search?hl=en&ei=B ... er&spell=1
Thorze wrote:I just wanted to make a cool topic like Juish have cool topics..
Re: for people who write programs for elma
wow, this is fully exactly what i needed and even more! :** to xiph
just need the registered version without virus now
just need the registered version without virus now
Re: for people who write programs for elma
haha
Thorze wrote:I just wanted to make a cool topic like Juish have cool topics..
Re: for people who write programs for elma
I added the programs to my my Elma guide: http://zworqy.com/elmaguide
<Fihlvein> another case of zworqy-is-always-right closed i guess
<yoosef> zworqy doesnt suck at anything
<yoosef> zworqy doesnt suck at anything