360haven works best with JavaScript enabled
Need Help Reading DDS Files from a gamesave
Loading
Register
Page 1 of 2 12 LastLast
Results 1 to 8 of 10
  1. #1
    Developer

    TheLaughingClown is offline
    Join Date : Feb 2012
    Posts : 627
    Array

    Need Help Reading DDS Files from a gamesave

    Basically I want to read DDS files from the WWE 2K15.dat file in my program, I've searched allot of websites

    to find a dll that reads dds files but came across only 2 well known ones 1. Freeimage.net 2. Devil.net if



    anyone knows someone or can show me how to do this please reply on this form.
    Downloads : 82 || Uploads : 0 || Rep Power : 2823 || Posts : 627 || Thanks : 51 || Thanked 263 Times in 35 Posts


    I'm TheLaughingClown I laugh when I destroy someone on a game, I'm former xA0Vx Member: xA0Vx SYCOxGRIM

    WWE 2K18 releases 10/17/17
    "BE LIKE NO ONE"

  2. #2
    Wisdom Sold Seperately

    8Ball is offline
    Join Date : Dec 2010
    Location : UK
    Posts : 575
    Array

    Re: Need Help Reading DDS Files from a gamesave

    Devil will do it no prob.
    Heres a .Net wrapper and samplecode, pay paticular attention to the loadimage sub, it's where the things of interest start to happen.
    I ran it through a converter into VB for your preference.
    https://www.dropbox.com/s/ju06g00hmc...Devil.rar?dl=0
    Try to get a feel for the code first and we'll go from there.
    Downloads : 101 || Uploads : 18 || Rep Power : 3316 || Posts : 575 || Thanks : 51 || Thanked 462 Times in 200 Posts



  3. The Following 2 Users Say Thank You to 8Ball For This Useful Post:


  4. #3
    Developer

    TheLaughingClown is offline
    Join Date : Feb 2012
    Posts : 627
    Array

    Re: Need Help Reading DDS Files from a gamesave

    I used Devil.net but, When I reference it and debug the project it gives me an error(I am using a 64 Bit Pc).
    Downloads : 82 || Uploads : 0 || Rep Power : 2823 || Posts : 627 || Thanks : 51 || Thanked 263 Times in 35 Posts


    I'm TheLaughingClown I laugh when I destroy someone on a game, I'm former xA0Vx Member: xA0Vx SYCOxGRIM

    WWE 2K18 releases 10/17/17
    "BE LIKE NO ONE"

  5. #4
    Wisdom Sold Seperately

    8Ball is offline
    Join Date : Dec 2010
    Location : UK
    Posts : 575
    Array

    Re: Need Help Reading DDS Files from a gamesave

    what error? You will need to include the original devil dll +ilu.dll as well as the wrapper, this will likely involve manually copying them from the bin folder of what I posted. Sometimes these things are not copied over automatically when you make a reference.

    You can most easily find them in "DevILNet.Sample\bin\x64\Debug", remember, all 3.
    Downloads : 101 || Uploads : 18 || Rep Power : 3316 || Posts : 575 || Thanks : 51 || Thanked 462 Times in 200 Posts



  6. #5
    Developer

    TheLaughingClown is offline
    Join Date : Feb 2012
    Posts : 627
    Array

    Re: Need Help Reading DDS Files from a gamesave

    This is the error i'am getting any help?Click image for larger version. 

Name:	Screen Shot.jpg 
Views:	18 
Size:	35.4 KB 
ID:	16358
    Downloads : 82 || Uploads : 0 || Rep Power : 2823 || Posts : 627 || Thanks : 51 || Thanked 263 Times in 35 Posts


    I'm TheLaughingClown I laugh when I destroy someone on a game, I'm former xA0Vx Member: xA0Vx SYCOxGRIM

    WWE 2K18 releases 10/17/17
    "BE LIKE NO ONE"

  7. #6
    Wisdom Sold Seperately

    8Ball is offline
    Join Date : Dec 2010
    Location : UK
    Posts : 575
    Array

    Re: Need Help Reading DDS Files from a gamesave

    Only add the .Net wrapper as a reference, the rest just sit in your bin folders where your compiled applications go.
    You also may encounter problems if you're using a lower framework to that of the wrapper but I think that's a different warning.
    Downloads : 101 || Uploads : 18 || Rep Power : 3316 || Posts : 575 || Thanks : 51 || Thanked 462 Times in 200 Posts



  8. #7
    Developer

    TheLaughingClown is offline
    Join Date : Feb 2012
    Posts : 627
    Array

    Re: Need Help Reading DDS Files from a gamesave

    I add the wrapper but I can't see a method to open a dds file in the project
    Downloads : 82 || Uploads : 0 || Rep Power : 2823 || Posts : 627 || Thanks : 51 || Thanked 263 Times in 35 Posts


    I'm TheLaughingClown I laugh when I destroy someone on a game, I'm former xA0Vx Member: xA0Vx SYCOxGRIM

    WWE 2K18 releases 10/17/17
    "BE LIKE NO ONE"

  9. #8
    Wisdom Sold Seperately

    8Ball is offline
    Join Date : Dec 2010
    Location : UK
    Posts : 575
    Array

    Re: Need Help Reading DDS Files from a gamesave

    This works just fine.
    Code:
    Imports DevIL
    Imports DevIL.Unmanaged
    Imports System.Drawing.Imaging
    
    Public Class Form1
    
        Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
            Dim o As New OpenFileDialog()
            o.ShowDialog()
            Dim image As Image
            Dim i As New ImageImporter()
            image = i.LoadImage(ImageType.Dds, o.FileName)
            image.Bind()
            Dim info = IL.GetImageInfo()
            Dim bitmap = New Bitmap(info.Width, info.Height, PixelFormat.Format32bppArgb)
            Dim rect = New Rectangle(0, 0, info.Width, info.Height)
            Dim data = bitmap.LockBits(rect, ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb)
            IL.CopyPixels(0, 0, 0, info.Width, info.Height, 1, DataFormat.BGRA, DataType.UnsignedByte, data.Scan0)
            bitmap.UnlockBits(Data)
            PictureBox1.Image = bitmap
            PictureBox1.Refresh()
    
        End Sub
    End Class


    One thing you are going to have to keep an eye on is which arch you compile for, you will notice there are 64 and 32 bit versions of the dlls; if you mix and match it won't work.
    I recommend you compile specifically for 32bit, recompile the .net dll to 32 bit and use only the 32bit dlls from the lib folder, if you were to do it for 64bit only you run the risk of cutting off people running on a potato.

    The above ran perfectly for me.

    There is a shorter version using these libraries DevIL.NET | Marco Mastropaolo which makes it a one liner but that just freezes if try to load a dds, don't see how thats helpful but SO disagrees.
    Last edited by 8Ball; 06-01-2015 at 12:29 PM.
    Downloads : 101 || Uploads : 18 || Rep Power : 3316 || Posts : 575 || Thanks : 51 || Thanked 462 Times in 200 Posts



  10. The Following 3 Users Say Thank You to 8Ball For This Useful Post:


 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. WWE 2K14 What Size image does it have to be in DDS Format
    By twist and flip in forum Xbox 360 Modding Discussion
    Replies: 12
    Last Post: 11-12-2013, 04:14 PM
  2. how to make a dds file Texture for Paint tool
    By twist and flip in forum Xbox 360 Modding Discussion
    Replies: 5
    Last Post: 07-24-2013, 05:24 AM
  3. help with Saving 2.colour.dds with photoshop for wwe13
    By bugsyboy in forum Xbox 360 Modding Discussion
    Replies: 0
    Last Post: 02-02-2013, 08:21 PM
  4. DDS Plug in Photoshop Mac
    By bugsyboy in forum Help & Support
    Replies: 0
    Last Post: 11-30-2012, 08:29 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.
     

About 360haven

    360haven is an Forum Devoted To Game modding Fans from all over the world.

    An Awesome Community of Xbox 360 Gamers, Modders and Developers who Create & Share Tutorials, Applications, Gfx, Trainers and Gamesaves.

    A haven for the l33t.
    A scarce paradise for modders.

Like this page

Google+