GT4 Hybrid Applications by teknogeek1300

Discussion in 'Hybriding' started by teknogeek, Oct 29, 2007.

  1. Death Scythe

    Death Scythe

    Messages:
    147
    Oh, no what I meant was I'd put it with car name, wheelbase and weight (if possible). My list is small at the moment, but I have stuff like

    Code:
    code here /Supra Denso Chassis, 2550mm @ 1000k
    
    granted, I don't have every car made, but I put a few cars that I've used so far + tried to document them like above. Google = my friend lol. Actually, 2morow will be my testing day, 2day is the "I forgot to finish something on the prelude" day (namely, finish up the battery relocation + wire tuck bleh). later.
     
  2. teknogeek

    teknogeek

    Messages:
    250
    Holy crap I'm tired. Haven't slept yet. Been tweaking my drift car all night. I'll probably get started on converting ALL the rims to the correct format for the hybrid swapper. Not all images yet. But at least a full list.

    EDIT:

    UPDATED

    GT4_Hybrid_Swaper_2_a16.zip, 11/02/07

    -Added "all"(700+) rims to the rim list.(no graphic views, or setup B and C support "yet")
     
  3. Speed Drifter

    Speed Drifter

    Messages:
    554
    Damn, you started a new thread while I thought you're all taking a little break :lol:

    But I'm glad I'm not too late this time, because I've got the rim pictures taken already (almost two years ago), take a look: https://www.gtplanet.net/forum/showthread.php?t=72945

    Should make your job a lot easier though you probably can't use those pics as they are
     
  4. Speed Drifter

    Speed Drifter

    Messages:
    554
    I think I'm ready to start collecting the list of chassis info, do you have any preferences for the formatting?

    (sorry about double posting, i'm tired :p)


    update: AC cars and Acura done
     
  5. teknogeek

    teknogeek

    Messages:
    250
    :dopey:

    That's freaken awesome!!!!!! WOOOOOOOO! I'll get started soon ;)

    As long as it works in the program, we're all good :)
    Whatever works.


    EDIT: Hmmm... Now I have to figure out what rim is what picture. Hmm. Maybe there's an easier way? Anybody?

    EX:
    hond0038 = ?
     
  6. sucahyo

    sucahyo

    Messages:
    2,171
    I don't think I can do it fast, sorry, maybe you can cross check using Speed Drifter image.

    I see, if only we can disassemble chassis data, we could have all this already.........


    Awesome :tup: :drool: :). high quality too :tup:.

    How do you name the rim?


    I hope I am not too late here is the rims list.


    teknogeek, I notice this in your list:
    20A2A6C0 000100AC /NIO227 A
    20A2A838 000100AC /NIO227 B
    20A2A9B0 000100AC /NIO227 C
    20A2A6C0 00000074 /acra0001
    20A2A6C0 000000E6 /acra0002

    Do "1" here make the code work better?
     

    Attached Files:

  7. Death Scythe

    Death Scythe

    Messages:
    147
    good stuff, I'll be the trusty tester as soon as you're ready (my list sucks haha). later.
     
  8. teknogeek

    teknogeek

    Messages:
    250
    Not sure how soon I'll get stared on the rims. That's a lot or rims to convert to single images.

    Hey Speed, do you have all those rims in single images?



    UPDATED

    GT4_Hybrid_Swaper_2_a17.zip, 11/03/07 @ 1:37PM

    -Added all rims setup A, B and C.(thanks to sucahyo)

    -Added "all"(400+) rims to the rim list.(no graphic views, or setup B and C support "yet")
    -Added a live update/preview to Rims, and Spoilers.(Thanks to sucahyo for the idea)
    -Added all spoilers in black.
    -Removed "2nd line" codes for Spoilers and Rims.
    -Added support for all NA Tune's.
    -Added support for all turbo's, and superchargers.
    -Removed "2nd line" codes for Superchargers, Turbos, and NA Tunes. They're now hardcoded.
    -Added support for all chassis's, drivetrains and LSD's.
    -Added support for what appears to be all engines thanks to sucahyo!
     
  9. Speed Drifter

    Speed Drifter

    Messages:
    554
    well.. nope :(
    that's the big task that still needs to be done by someone

    I think I could do the list about which rim codes correspond to which rim image, or is anyone doing it already?
     
  10. teknogeek

    teknogeek

    Messages:
    250
    I think I'm gonna get started on it. I'm just gonna name the GIF's there proper name ex: MAO267

    Then I'll get the patterns lined up with the current list we have and code it all in.
     
  11. teknogeek

    teknogeek

    Messages:
    250
    Got day 1 done. 100X100 GIF format, black background.

    EDIT: I'm only on day 3 after about 25 minutes. So it will take time.

    EDIT 2: Here's a final resemblance of what they will all look like:

    http://files.filefront.com/8959831
     
  12. Speed Drifter

    Speed Drifter

    Messages:
    554
    Nice job :) I'd like to do the list now, is it ok if I do it like this?

    Code:
    20A1F8C0 00000074	/acra0001 Setup A    AC0220.gif
    20A1FA38 00000074	/acra0001 Setup B    AC0220.gif
    20A1FBB0 00000074	/acra0001 Setup C    AC0220.gif
    
     
  13. teknogeek

    teknogeek

    Messages:
    250
    That would be sweet. You can go ahead and leave the .gif part off though.
     
  14. teknogeek

    teknogeek

    Messages:
    250
    Ok. I'm on day 17 now. That's 255. Now I'm thinking of the programming point of view.

    This will be the format the text file will be in:
    Code:
    20A1F8C0 00000074	/acra0001 Setup A    AC0220
    20A1FA38 00000074	/acra0001 Setup B    AC0220
    20A1FBB0 00000074	/acra0001 Setup C    AC0220
    Here's the code I'm currently using:
    Code:
            If irims.Text.Contains("NIO227") Then pbrim.Image = Global.teknogeek1300.My.Resources.Resources.NIO227
    The problem here is, I don't want to do 400+ lines of code for all the rims. Plus that would be a HORRIBLE way of operating.

    I was thinking along the lines of this:
    Code:
            If irims.Text.Contains("######") Then pbrim.Image = Global.teknogeek1300.My.Resources.Resources.######
    I need to to capture the last 6 digits of the line, and call for that same image name. Any ideas sucahyo? :) I know you're a god at this :)
     
  15. sucahyo

    sucahyo

    Messages:
    2,171
    Still fail to find the code to display spesific rims in rims dealer...............


    That look hard, it will depend on how you can get the resource. Can you get the resource by string? how can you extract the 6 rightmost character in text?


    try to find any command similar to this:
    pbrim.Image = Global.teknogeek1300.My.Resources.Resources[irims.Text.right(6)].
     
  16. teknogeek

    teknogeek

    Messages:
    250
    Code:
            pbrim.Image = Global.teknogeek1300.My.Resources.Resources[irims.Text.right(6)]
    It doesn't seem to like this^

    I think I may be able to modify it to work. now that I know
    Code:
    irims.Text.right(6)
    Any other ideas?

    EDIT: It ".right" isn't accepted :(
     
  17. sucahyo

    sucahyo

    Messages:
    2,171
    Do you know where I can find syntax for vb.net? Maybe I can help find the correct function.
     
  18. teknogeek

    teknogeek

    Messages:
    250
    I have no idea what syntax is... lol
     
  19. sucahyo

    sucahyo

    Messages:
    2,171
    search "right" in vb.net help .

    Also what are the properties of Global.teknogeek1300.My.Resources.Resources.
     
  20. teknogeek

    teknogeek

    Messages:
    250
    I have "EndsWith" but "Resources.Resources[irims.Text.right(6)]" sems to be a problem too.
     
  21. sucahyo

    sucahyo

    Messages:
    2,171
    it's not endwith that you need, you need some function to extract the rightmost string.
     
  22. teknogeek

    teknogeek

    Messages:
    250
    I've got
    Code:
            ophast.Text = irims.Text.Substring(29)
    That will get what we need. Now I just need it to call that 29th substring from my resources.
     
  23. hachi77

    hachi77

    Messages:
    26
    Hi Sucahyo
     
  24. Speed Drifter

    Speed Drifter

    Messages:
    554
    Does someone know more about this?
     
  25. teknogeek

    teknogeek

    Messages:
    250
    I have no clue. Lets just work with the 0 for now. We can easily change it later if it's a problem. Pretty sure I just got the code I need to get the program working.
     
  26. teknogeek

    teknogeek

    Messages:
    250
    Ok Speed. Got the app setup for this layout:
    Code:
    20A1F8C0 00000074	/acra0001 Setup A    AC0220
    It takes substring 36+
    Code:
    20A1F8C0 00000074	/acra0001 Setup A    [COLOR="Red"]A[/COLOR]C0220
    and calls for a file with those last 6 digits.

    So. It's up to you bud :)

    If it's gonna take a while I can help.
     
  27. sucahyo

    sucahyo

    Messages:
    2,171
    Unfortunately, I won't be able to make all 4 first slot hybrid car working, I don't have PS2, but I am sure someone here can help you :).

    Cool, you can make it work :). Do the blank space contain tab character or all of that is space?
     
  28. teknogeek

    teknogeek

    Messages:
    250
    tab = 1 substring if that's what you mean.

    Got it all done and kickin. Just waiting to hear from Speed.
     
  29. Speed Drifter

    Speed Drifter

    Messages:
    554
    Sure thing, I'll do it exactly like that :)
    It's gonna take a while anyway but shouldn't be for too long, right now the problem is that my hard drive's dying and I need to replace it :sick:
    Last night I was working on the list and my comp just freezed three times, couldn't even save anything.. I'm going to buy the replacement today and hopefully get all my data moved before tomorrow
     
  30. teknogeek

    teknogeek

    Messages:
    250
    :( I've seen that way too many times. I feel your pain. GOOD LUCK! I'll see f I can figure out the parttern and try to help.